diff options
Diffstat (limited to 'nms-patches/TileEntityContainer.patch')
-rw-r--r-- | nms-patches/TileEntityContainer.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nms-patches/TileEntityContainer.patch b/nms-patches/TileEntityContainer.patch index 3484ee4f..e49e2ca9 100644 --- a/nms-patches/TileEntityContainer.patch +++ b/nms-patches/TileEntityContainer.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/server/TileEntityContainer.java +++ b/net/minecraft/server/TileEntityContainer.java -@@ -37,4 +37,11 @@ +@@ -37,4 +37,12 @@ public IChatBaseComponent getScoreboardDisplayName() { return (IChatBaseComponent) (this.hasCustomName() ? new ChatComponentText(this.getName()) : new ChatMessage(this.getName(), new Object[0])); } @@ -8,6 +8,7 @@ + // CraftBukkit start + @Override + public org.bukkit.Location getLocation() { ++ if (world == null) return null; + return new org.bukkit.Location(world.getWorld(), position.getX(), position.getY(), position.getZ()); + } + // CraftBukkit end |