mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 06:39:07 +00:00
Fixed bug that sent console buffer to random players for real this time
This commit is contained in:
@@ -173,6 +173,7 @@ public class SocketServer extends WebSocketServer {
|
|||||||
|
|
||||||
if (user.isGuest()) {
|
if (user.isGuest()) {
|
||||||
|
|
||||||
|
json.remove("c");
|
||||||
user.getWebSocket().send(json.toJSONString());
|
user.getWebSocket().send(json.toJSONString());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -197,7 +198,7 @@ public class SocketServer extends WebSocketServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
json.put("c", buff);
|
json.put("c", buff);
|
||||||
} else if (json.containsKey("c")) {
|
} else {
|
||||||
json.remove("c");
|
json.remove("c");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user