boxshroud fixes

This commit is contained in:
FatBoy committed 2024-02-14 14:00:23 -06:00
1 parent aa0e993038
commit 8a0303e0f5
2 files changed
+9 -15

No files matched your search

@@ -1888,6 +1888,14 @@ public class ClientMessagePump implements NetMsgHandler {
break;
case LEAVEREQUEST:
origin.disconnect();
ArrayList<PlayerCharacter> sameMachine = new ArrayList<>();
for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) {
if(origin.machineID.equals(pc.getClientConnection().machineID))
sameMachine.add(pc);
}
if(sameMachine.isEmpty() == false){
sameMachine.get(0).isBoxed = false;
}
break;
case POWER:
PowersManager.usePower((PerformActionMsg) msg, origin, false);