diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-04-01 00:06:09 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-04-01 00:06:09 -0500 |
commit | c33908509a6fdfb12b061d146dce36eaeabfd83c (patch) | |
tree | d6230b408ff4c4762b8111792903f71db5c2f33e /src/main/java/net/minecraft/server/WorldServer.java | |
parent | 311f0c86a4559a96f3b2e3f2c7e63fca3be132d4 (diff) | |
download | craftbukkit-c33908509a6fdfb12b061d146dce36eaeabfd83c.tar craftbukkit-c33908509a6fdfb12b061d146dce36eaeabfd83c.tar.gz craftbukkit-c33908509a6fdfb12b061d146dce36eaeabfd83c.tar.lz craftbukkit-c33908509a6fdfb12b061d146dce36eaeabfd83c.tar.xz craftbukkit-c33908509a6fdfb12b061d146dce36eaeabfd83c.zip |
Set world on fixed tile entity to avoid NPE. Addresses BUKKIT-3949
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldServer.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldServer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index 74897635..13f67da5 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -139,6 +139,7 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate if (Block.byId[type] instanceof BlockContainer) { TileEntity replacement = ((BlockContainer) Block.byId[type]).b(this); + replacement.world = this; this.setTileEntity(x, y, z, replacement); return replacement; } else { |