@@ -38,14 +38,14 @@
|
||||
super(Containers.HOPPER, i);
|
||||
this.hopper = iinventory;
|
||||
+ this.player = playerinventory; // CraftBukkit - save player
|
||||
a(iinventory, 5);
|
||||
checkContainerSize(iinventory, 5);
|
||||
iinventory.startOpen(playerinventory.player);
|
||||
boolean flag = true;
|
||||
@@ -42,6 +64,7 @@
|
||||
|
||||
@Override
|
||||
public boolean canUse(EntityHuman entityhuman) {
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
+ if (!this.checkReachable) return true; // CraftBukkit
|
||||
return this.hopper.a(entityhuman);
|
||||
return this.hopper.stillValid(entityhuman);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user