The Day of tiny Tweaks

This commit is contained in:
Ellpeck 2015-07-03 01:22:09 +02:00
parent e6702d3c6f
commit 8d99b4e2f9

View file

@ -138,9 +138,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
boolean can = false; boolean can = false;
ItemStack theStack = null; ItemStack theStack = null;
for(int i = Math.max(theSlotToPull, 0); i < this.slotToPullEnd; i++){ for(int i = Math.max(theSlotToPull, 0); i < Math.min(this.slotToPullEnd, theInventory.getSizeInventory()); i++){
if(i >= theInventory.getSizeInventory()) return;
ItemStack tempStack = theInventory.getStackInSlot(i); ItemStack tempStack = theInventory.getStackInSlot(i);
if(tempStack != null){ if(tempStack != null){
if(tempStack.getMaxStackSize() < this.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize(); if(tempStack.getMaxStackSize() < this.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize();
@ -200,9 +198,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
if(this.slots[0] != null){ if(this.slots[0] != null){
ItemStack theStack = null; ItemStack theStack = null;
for(int i = Math.max(theSlotToPut, 0); i < this.slotToPutEnd; i++){ for(int i = Math.max(theSlotToPut, 0); i < Math.min(this.slotToPutEnd, theInventory.getSizeInventory()); i++){
if(i >= theInventory.getSizeInventory()) return;
ItemStack tempStack = theInventory.getStackInSlot(i); ItemStack tempStack = theInventory.getStackInSlot(i);
if(tempStack != null){ if(tempStack != null){
if(tempStack.getMaxStackSize() < theInventory.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize(); if(tempStack.getMaxStackSize() < theInventory.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize();