diff options
author | md_5 <git@md-5.net> | 2016-12-11 16:41:40 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-12-11 16:41:40 +1100 |
commit | c4baa9cdf9e29a565b822209f0b5f7251f3a02ad (patch) | |
tree | 2b235c9c93eab3f6ae2c6eadd0d0cd12404fc496 /nms-patches | |
parent | 0a81101bd208981bba54b723a7e3388c590c721b (diff) | |
download | craftbukkit-c4baa9cdf9e29a565b822209f0b5f7251f3a02ad.tar craftbukkit-c4baa9cdf9e29a565b822209f0b5f7251f3a02ad.tar.gz craftbukkit-c4baa9cdf9e29a565b822209f0b5f7251f3a02ad.tar.lz craftbukkit-c4baa9cdf9e29a565b822209f0b5f7251f3a02ad.tar.xz craftbukkit-c4baa9cdf9e29a565b822209f0b5f7251f3a02ad.zip |
Add getLocation for InventoryEnderChest
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/InventoryEnderChest.patch | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nms-patches/InventoryEnderChest.patch b/nms-patches/InventoryEnderChest.patch index 2591f07e..18f4a07b 100644 --- a/nms-patches/InventoryEnderChest.patch +++ b/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) { |