Commits
md_5 authored ec15a4cb5c0
1 1 | --- a/net/minecraft/server/TileEntityContainer.java |
2 2 | +++ b/net/minecraft/server/TileEntityContainer.java |
3 3 | |
4 4 | public IChatBaseComponent getScoreboardDisplayName() { |
5 5 | return (IChatBaseComponent) (this.hasCustomName() ? new ChatComponentText(this.getName()) : new ChatMessage(this.getName(), new Object[0])); |
6 6 | } |
7 7 | + |
8 8 | + // CraftBukkit start |
9 9 | + @Override |
10 10 | + public org.bukkit.Location getLocation() { |
11 + | + if (world == null) return null; |
11 12 | + return new org.bukkit.Location(world.getWorld(), position.getX(), position.getY(), position.getZ()); |
12 13 | + } |
13 14 | + // CraftBukkit end |
14 15 | } |