diff options
Diffstat (limited to 'nms-patches/ContainerBeacon.patch')
-rw-r--r-- | nms-patches/ContainerBeacon.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/ContainerBeacon.patch b/nms-patches/ContainerBeacon.patch index 70303e2b..332ab07f 100644 --- a/nms-patches/ContainerBeacon.patch +++ b/nms-patches/ContainerBeacon.patch @@ -7,7 +7,7 @@ + public class ContainerBeacon extends Container { - private IInventory a; + private IInventory beacon; private final ContainerBeacon.SlotBeacon f; + // CraftBukkit start + private CraftInventoryView bukkitEntity = null; @@ -16,7 +16,7 @@ public ContainerBeacon(IInventory iinventory, IInventory iinventory1) { + player = (PlayerInventory) iinventory; // CraftBukkit - TODO: check this - this.a = iinventory1; + this.beacon = iinventory1; this.a((Slot) (this.f = new ContainerBeacon.SlotBeacon(iinventory1, 0, 136, 110))); byte b0 = 36; @@ -47,6 +54,7 @@ @@ -24,7 +24,7 @@ public boolean a(EntityHuman entityhuman) { + if (!this.checkReachable) return true; // CraftBukkit - return this.a.a(entityhuman); + return this.beacon.a(entityhuman); } @@ -110,4 +118,17 @@ @@ -39,7 +39,7 @@ + return bukkitEntity; + } + -+ org.bukkit.craftbukkit.inventory.CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryBeacon((TileEntityBeacon) this.a); // TODO - check this ++ org.bukkit.craftbukkit.inventory.CraftInventory inventory = new org.bukkit.craftbukkit.inventory.CraftInventoryBeacon((TileEntityBeacon) this.beacon); // TODO - check this + bukkitEntity = new CraftInventoryView(this.player.player.getBukkitEntity(), inventory, this); + return bukkitEntity; + } |