mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
15 lines
575 B
Diff
15 lines
575 B
Diff
|
--- a/net/minecraft/server/TileEntityContainer.java
|
||
|
+++ b/net/minecraft/server/TileEntityContainer.java
|
||
|
@@ -36,4 +36,11 @@
|
||
|
public IChatBaseComponent getScoreboardDisplayName() {
|
||
|
return (IChatBaseComponent) (this.hasCustomName() ? new ChatComponentText(this.getName()) : new ChatMessage(this.getName(), new Object[0]));
|
||
|
}
|
||
|
+
|
||
|
+ // CraftBukkit start
|
||
|
+ @Override
|
||
|
+ public org.bukkit.Location getLocation() {
|
||
|
+ return new org.bukkit.Location(world.getWorld(), position.getX(), position.getY(), position.getZ());
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
}
|