Browse Source

PC null catch

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
230a7460cd
  1. 4
      src/engine/objects/PlayerCharacter.java

4
src/engine/objects/PlayerCharacter.java

@ -4839,6 +4839,7 @@ public class PlayerCharacter extends AbstractCharacter {
} }
public static boolean checkIfBoxed(PlayerCharacter player){ public static boolean checkIfBoxed(PlayerCharacter player){
try {
for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) { for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) {
if (!pc.isActive) if (!pc.isActive)
continue; continue;
@ -4852,6 +4853,9 @@ public class PlayerCharacter extends AbstractCharacter {
} }
return false; return false;
}catch(Exception e){
return false;
}
} }
@Override @Override

Loading…
Cancel
Save