From ea0cefd3f90732d61c42542ae31327e64ab164d9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 29 Sep 2024 19:50:13 -0500 Subject: [PATCH] temporarily disable box limits --- src/engine/objects/PlayerCharacter.java | 38 +++++++++++++------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 41aa0964..e8f26158 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4929,24 +4929,26 @@ public class PlayerCharacter extends AbstractCharacter { } public static boolean checkIfBoxed(PlayerCharacter player){ - try { - String machineID = player.getClientConnection().machineID; - ArrayList sameMachine = new ArrayList<>(); - for (PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()) { - if (!pc.equals(player) && pc.isActive && pc.isEnteredWorld() && pc.getClientConnection().machineID.equals(machineID)) { - sameMachine.add(pc); - } - } - - boolean boxed = false; - for (PlayerCharacter pc : sameMachine) - if (!pc.isBoxed) - boxed = true; - - return boxed; - }catch(Exception e){ - return false; - } + //REMOVE BEFORE LAUNCH -TEMP DISABLE OF BOX LIMIT + return false; + //try { + // String machineID = player.getClientConnection().machineID; + // ArrayList sameMachine = new ArrayList<>(); + // for (PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()) { + // if (!pc.equals(player) && pc.isActive && pc.isEnteredWorld() && pc.getClientConnection().machineID.equals(machineID)) { + // sameMachine.add(pc); + // } + // } + + // boolean boxed = false; + // for (PlayerCharacter pc : sameMachine) + // if (!pc.isBoxed) + // boxed = true; + + // return boxed; + //}catch(Exception e){ + // return false; + //} } @Override public void updateFlight() {