mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-25 23:16:15 +00:00
16 lines
540 B
Diff
16 lines
540 B
Diff
--- a/net/minecraft/world/level/block/entity/TileEntityContainer.java
|
|
+++ b/net/minecraft/world/level/block/entity/TileEntityContainer.java
|
|
@@ -178,4 +178,12 @@
|
|
nbttagcompound.remove("lock");
|
|
nbttagcompound.remove("Items");
|
|
}
|
|
+
|
|
+ // CraftBukkit start
|
|
+ @Override
|
|
+ public org.bukkit.Location getLocation() {
|
|
+ if (level == null) return null;
|
|
+ return new org.bukkit.Location(level.getWorld(), worldPosition.getX(), worldPosition.getY(), worldPosition.getZ());
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|