Fixed bug with infinite loop in Bridges MushroomSpawn.
This commit is contained in:
parent
8427ead097
commit
3bc8dd0098
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user