From a9e3f93ed347ebeb450c148f35d126c4cb468d77 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 11 Dec 2016 16:41:40 +1100 Subject: [PATCH] Add getLocation for InventoryEnderChest By: md_5 --- paper-server/nms-patches/InventoryEnderChest.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/paper-server/nms-patches/InventoryEnderChest.patch b/paper-server/nms-patches/InventoryEnderChest.patch index 2591f07ed6..18f4a07b85 100644 --- a/paper-server/nms-patches/InventoryEnderChest.patch +++ b/paper-server/nms-patches/InventoryEnderChest.patch @@ -1,8 +1,9 @@ --- a/net/minecraft/server/InventoryEnderChest.java +++ b/net/minecraft/server/InventoryEnderChest.java -@@ -1,11 +1,21 @@ +@@ -1,11 +1,27 @@ package net.minecraft.server; ++import org.bukkit.Location; +import org.bukkit.inventory.InventoryHolder; + public class InventoryEnderChest extends InventorySubcontainer { @@ -14,6 +15,11 @@ + public InventoryHolder getBukkitOwner() { + return owner.getBukkitEntity(); + } ++ ++ @Override ++ public Location getLocation() { ++ return new Location(this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ()); ++ } - public InventoryEnderChest() { + public InventoryEnderChest(EntityHuman owner) {