mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
16 lines
499 B
Diff
16 lines
499 B
Diff
--- a/net/minecraft/server/TileEntityContainer.java
|
|
+++ b/net/minecraft/server/TileEntityContainer.java
|
|
@@ -76,4 +76,12 @@
|
|
}
|
|
|
|
protected abstract Container createContainer(int i, PlayerInventory playerinventory);
|
|
+
|
|
+ // 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
|
|
}
|