Skip to content

Commit

Permalink
Update GlobalChat.java
Browse files Browse the repository at this point in the history
Fixed issue with Exception handling in Global Chat. (This is what I get for editing directly on GitHub.)
  • Loading branch information
coltonk9043 committed Apr 19, 2024
1 parent be56fd0 commit 3abcd78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/net/aoba/cmd/GlobalChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ public void StartListener() {
chatSocketListenerThread = new Thread(new Runnable() {
@Override
public void run() {
// Gotta love AWS!
socket = new Socket("18.221.222.43", 80);
out = new PrintWriter(socket.getOutputStream(), false);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));

try {
// Gotta love AWS!
socket = new Socket("18.221.222.43", 80);
out = new PrintWriter(socket.getOutputStream(), false);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));

// Send the connection action to the server.
Send(gson.toJson(new ConnectAction(MinecraftClient.getInstance().getSession().getUsername())));

Expand Down

0 comments on commit 3abcd78

Please sign in to comment.