combat bug fix
This commit is contained in:
1 parent
67ce60124f
commit
3553291d1d
1 file changed
+3
-5
@@ -4838,15 +4838,13 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
|
||||
public static boolean checkIfBoxed(PlayerCharacter player){
|
||||
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
|
||||
|
||||
if(!pc.isActive)
|
||||
continue;
|
||||
|
||||
if(!pc.enteredWorld)
|
||||
continue;
|
||||
|
||||
if(!pc.isBoxed && pc.getClientConnection().machineID.equals(player.getClientConnection().machineID))
|
||||
return true;
|
||||
if(pc.getClientConnection().machineID.equals(player.getClientConnection().machineID))
|
||||
if(pc.isBoxed == false)
|
||||
return true;
|
||||
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user