Fixed bug that sent console buffer to random players for real this time

This commit is contained in:
simon 2017-12-30 16:41:14 -05:00
parent 08f1aa8686
commit 1ed9e9e4db

View File

@ -173,6 +173,7 @@ public class SocketServer extends WebSocketServer {
if (user.isGuest()) {
json.remove("c");
user.getWebSocket().send(json.toJSONString());
} else {
@ -197,7 +198,7 @@ public class SocketServer extends WebSocketServer {
}
json.put("c", buff);
} else if (json.containsKey("c")) {
} else {
json.remove("c");
}