@@ -31,20 +31,20 @@
|
||||
+ this.player = playerinventory;
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
a(iinventory, 9);
|
||||
checkContainerSize(iinventory, 9);
|
||||
this.dispenser = iinventory;
|
||||
iinventory.startOpen(playerinventory.player);
|
||||
@@ -48,6 +61,7 @@
|
||||
|
||||
@Override
|
||||
public boolean canUse(EntityHuman entityhuman) {
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
+ if (!this.checkReachable) return true; // CraftBukkit
|
||||
return this.dispenser.a(entityhuman);
|
||||
return this.dispenser.stillValid(entityhuman);
|
||||
}
|
||||
|
||||
@@ -89,4 +103,17 @@
|
||||
super.b(entityhuman);
|
||||
this.dispenser.closeContainer(entityhuman);
|
||||
super.removed(entityhuman);
|
||||
this.dispenser.stopOpen(entityhuman);
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
|
||||
Reference in New Issue
Block a user