From ab70d8aec2144507131fa3bcd6ee7a28dd3f12dd Mon Sep 17 00:00:00 2001 From: MysteriousAges Date: Tue, 27 Oct 2015 13:29:09 -0500 Subject: [PATCH] Fixing Enchanted Earth ticking things at the top of the world. Thanks @TTFTCUTS. --- src/main/java/magicbees/block/BlockEnchantedEarth.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/magicbees/block/BlockEnchantedEarth.java b/src/main/java/magicbees/block/BlockEnchantedEarth.java index 60e6514..5fe7e3b 100644 --- a/src/main/java/magicbees/block/BlockEnchantedEarth.java +++ b/src/main/java/magicbees/block/BlockEnchantedEarth.java @@ -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; } }