Browse Source

PC null catch

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

Loading…
Cancel
Save