mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +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;
|
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();
|
||||||
|
|
Loading…
Reference in a new issue