3
0

Allow pseudo-real semi-infernal chunks for trees, fix #273

This commit is contained in:
Sergey Shatunov 2016-02-04 22:35:14 +07:00
parent d98e2ca8f6
commit 3926aa3878

View File

@ -26,7 +26,7 @@ public class CraftChunk implements Chunk {
this.weakChunk = new WeakReference<net.minecraft.world.chunk.Chunk>(chunk); this.weakChunk = new WeakReference<net.minecraft.world.chunk.Chunk>(chunk);
} }
worldServer = (net.minecraft.world.WorldServer) getHandle().worldObj; worldServer = getHandle().worldObj instanceof net.minecraft.world.WorldServer ? (net.minecraft.world.WorldServer) getHandle().worldObj : null;
x = getHandle().xPosition; x = getHandle().xPosition;
z = getHandle().zPosition; z = getHandle().zPosition;
} }