SPIGOT-4953: Crafting table inventory returns player location, not block location

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-05-19 19:17:56 +10:00
parent 98155b05fb
commit 8718f03946
2 changed files with 5 additions and 4 deletions

View File

@@ -62,7 +62,7 @@
+
+ @Override
+ public Location getLocation() {
+ return owner.getBukkitEntity().getLocation();
+ return container instanceof ContainerWorkbench ? ((ContainerWorkbench) container).e.getLocation() : owner.getBukkitEntity().getLocation();
+ }
+
+ @Override