mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fixed the ESD ignoring setInventorySlotContents()
This commit is contained in:
parent
de7c789071
commit
cdd101d395
1 changed files with 9 additions and 6 deletions
|
@ -261,14 +261,17 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
||||||
}
|
}
|
||||||
if(can){
|
if(can){
|
||||||
if(theStack != null){
|
if(theStack != null){
|
||||||
if(theStack.isItemEqual(this.slots[0])){
|
ItemStack copiedStack = theStack.copy();
|
||||||
if(this.slots[0].stackSize <= maxSize - theStack.stackSize){
|
if(copiedStack.isItemEqual(this.slots[0])){
|
||||||
theStack.stackSize += this.slots[0].stackSize;
|
if(this.slots[0].stackSize <= maxSize - copiedStack.stackSize){
|
||||||
|
copiedStack.stackSize += this.slots[0].stackSize;
|
||||||
this.slots[0] = null;
|
this.slots[0] = null;
|
||||||
|
theInventory.setInventorySlotContents(theSlotToPut, copiedStack);
|
||||||
}
|
}
|
||||||
else if(this.slots[0].stackSize > maxSize - theStack.stackSize){
|
else if(this.slots[0].stackSize > maxSize - copiedStack.stackSize){
|
||||||
this.decrStackSize(0, maxSize - theStack.stackSize);
|
this.decrStackSize(0, maxSize - copiedStack.stackSize);
|
||||||
theStack.stackSize = maxSize;
|
copiedStack.stackSize = maxSize;
|
||||||
|
theInventory.setInventorySlotContents(theSlotToPut, copiedStack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue