Fixing Enchanted Earth ticking things at the top of the world. Thanks @TTFTCUTS.

This commit is contained in:
MysteriousAges committed 2015-10-27 13:29:09 -05:00
1 parent e8002e069a
commit ab70d8aec2
1 file changed
+7 -2
@@ -33,8 +33,13 @@ public class BlockEnchantedEarth extends Block {
public void updateTick(World world, int x, int y, int z, Random random) {
for (int height = y + 1; height <= 256; ++height) {
Block b = world.getBlock(x, height, z);
if (b != this && b.getTickRandomly()) {
world.scheduleBlockUpdate(x, height, z, b, 0);
if (b == this) {
continue;
}
else {
if (b.getTickRandomly()) {
world.scheduleBlockUpdate(x, height, z, b, 0);
}
break;
}
}