mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 08:17:29 +00:00
Fixing Enchanted Earth ticking things at the top of the world. Thanks @TTFTCUTS.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user