Fix with TurfForts infinite while loop.

This commit is contained in:
Jonathan Williams 2016-03-20 15:46:57 -05:00
parent 3bc8dd0098
commit 262f659ffa

View File

@ -369,7 +369,7 @@ public class TurfForts extends TeamGame
//On Own //On Own
Block block = event.getBlock().getRelative(BlockFace.DOWN); Block block = event.getBlock().getRelative(BlockFace.DOWN);
while (block.getTypeId() == 0) while (block.getTypeId() == 0 && block.getY() > 0)
block = block.getRelative(BlockFace.DOWN); block = block.getRelative(BlockFace.DOWN);
if (block.getData() != team.GetColorData()) if (block.getData() != team.GetColorData())