3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 14:50:08 +01:00
Paper/nms-patches/TileEntityContainer.patch

15 Zeilen
575 B
Diff

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/TileEntityContainer.java
+++ b/net/minecraft/server/TileEntityContainer.java
2016-05-10 13:47:39 +02:00
@@ -37,4 +37,11 @@
2016-02-29 22:32:46 +01:00
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
}