mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
The Day of tiny Tweaks
This commit is contained in:
parent
e6702d3c6f
commit
8d99b4e2f9
1 changed files with 2 additions and 6 deletions
|
@ -138,9 +138,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
boolean can = false;
|
||||
|
||||
ItemStack theStack = null;
|
||||
for(int i = Math.max(theSlotToPull, 0); i < this.slotToPullEnd; i++){
|
||||
if(i >= theInventory.getSizeInventory()) return;
|
||||
|
||||
for(int i = Math.max(theSlotToPull, 0); i < Math.min(this.slotToPullEnd, theInventory.getSizeInventory()); i++){
|
||||
ItemStack tempStack = theInventory.getStackInSlot(i);
|
||||
if(tempStack != null){
|
||||
if(tempStack.getMaxStackSize() < this.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize();
|
||||
|
@ -200,9 +198,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
|
||||
if(this.slots[0] != null){
|
||||
ItemStack theStack = null;
|
||||
for(int i = Math.max(theSlotToPut, 0); i < this.slotToPutEnd; i++){
|
||||
if(i >= theInventory.getSizeInventory()) return;
|
||||
|
||||
for(int i = Math.max(theSlotToPut, 0); i < Math.min(this.slotToPutEnd, theInventory.getSizeInventory()); i++){
|
||||
ItemStack tempStack = theInventory.getStackInSlot(i);
|
||||
if(tempStack != null){
|
||||
if(tempStack.getMaxStackSize() < theInventory.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize();
|
||||
|
|
Loading…
Reference in a new issue