Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
16 Zeilen
483 B
Diff
16 Zeilen
483 B
Diff
--- a/net/minecraft/server/TileEntityContainer.java
|
|
+++ b/net/minecraft/server/TileEntityContainer.java
|
|
@@ -34,4 +34,12 @@
|
|
public void setLock(ChestLock chestlock) {
|
|
this.a = chestlock;
|
|
}
|
|
+
|
|
+ // 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
|
|
}
|