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
1 changed files with 1 additions and 1 deletions

View File

@ -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())