From c33908509a6fdfb12b061d146dce36eaeabfd83c Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Mon, 1 Apr 2013 00:06:09 -0500 Subject: [PATCH] Set world on fixed tile entity to avoid NPE. Addresses BUKKIT-3949 --- src/main/java/net/minecraft/server/WorldServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index 7489763554..13f67da57c 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 {