Skip to content

Commit

Permalink
fix dupe barell, hopper and dolly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotl-EV committed Jul 13, 2022
1 parent 4edf88c commit 8f1b1de
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,10 @@ public ItemStack getStackInSlot(int islot) {
public ItemStack decrStackSize(int islot, int quantity) {
TileEntity ent = this.worldObj.getTileEntity(this.xCoord, this.yCoord - 1, this.zCoord);
ItemStack stack;
if (ent instanceof TileEntityHopper) {
//TODO Kotl Remove Code fix dupe
/*if (ent instanceof TileEntityHopper) {
stack = this.getStorage().decrStackSize_Hopper(islot, quantity);
} else if (ent == null) { // not a tile ent, check if a minecart hopper
} else */ if (ent == null) { // not a tile ent, check if a minecart hopper
if (aabbBlockBelow == null) {
aabbBlockBelow = AxisAlignedBB.getBoundingBox(xCoord, yCoord - 1, zCoord, xCoord + 1, yCoord, zCoord + 1);
}
Expand All @@ -680,9 +681,9 @@ public ItemStack decrStackSize(int islot, int quantity) {
stack = this.getStorage().decrStackSize_Hopper(islot, quantity);
} else {
// not a minecart hopper, assume something else...
stack = this.getStorage().decrStackSize(islot, quantity);
stack = this.getStorage().decrStackSize(islot, quantity);
}
} else { // at this point we know there is a valid tile below, and it's not a hopper
} else { // at this point we know there is a valid tile below, and it's not a hopper
stack = this.getStorage().decrStackSize(islot, quantity);
}

Expand Down

0 comments on commit 8f1b1de

Please sign in to comment.