Fixed bug with infinite loop in Bridges MushroomSpawn.

This commit is contained in:
Jonathan Williams 2016-03-20 00:32:33 -05:00
parent 8427ead097
commit 3bc8dd0098

View File

@ -1118,11 +1118,17 @@ public class Bridge extends TeamGame implements OreObsfucation
while (!UtilBlock.airFoliage(block))
{
block = block.getRelative(BlockFace.UP);
if (block.getY() >= 256)
break;
}
while (UtilBlock.airFoliage(block))
{
block = block.getRelative(BlockFace.DOWN);
if (block.getY() <= 0)
break;
}
block = block.getRelative(BlockFace.UP);