box check only every 10 seconds
This commit is contained in:
1 parent
422cf10eea
commit
27550293d6
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user