Browse Source

box check only every 10 seconds

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
27550293d6
  1. 2
      src/engine/objects/PlayerCharacter.java

2
src/engine/objects/PlayerCharacter.java

@ -4897,7 +4897,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4897,7 +4897,7 @@ public class PlayerCharacter extends AbstractCharacter {
}
public static void checkIfBoxed(PlayerCharacter player){
if(System.currentTimeMillis() > player.nextBoxCheck)
if(System.currentTimeMillis() < player.nextBoxCheck)
return;
player.nextBoxCheck = System.currentTimeMillis() + 10000;

Loading…
Cancel
Save