Skip to content

Commit

Permalink
Merge pull request #22 from Kotl-EV/master
Browse files Browse the repository at this point in the history
fix dupe barell, hopper and dolly
  • Loading branch information
Dream-Master authored Jul 31, 2022
2 parents f541343 + 8f1b1de commit 6e27eac
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 6e27eac

Please sign in to comment.