Fix with TurfForts infinite while loop.
This commit is contained in:
parent
3bc8dd0098
commit
262f659ffa
@ -369,7 +369,7 @@ public class TurfForts extends TeamGame
|
||||
|
||||
//On Own
|
||||
Block block = event.getBlock().getRelative(BlockFace.DOWN);
|
||||
while (block.getTypeId() == 0)
|
||||
while (block.getTypeId() == 0 && block.getY() > 0)
|
||||
block = block.getRelative(BlockFace.DOWN);
|
||||
|
||||
if (block.getData() != team.GetColorData())
|
||||
|
Loading…
Reference in New Issue
Block a user