Fixed up Container Derpup

This commit is contained in:
Ellpeck 2015-07-15 11:23:11 +02:00
parent 5a25595fa1
commit edcc279c45
19 changed files with 19 additions and 19 deletions

View file

@ -63,7 +63,7 @@ public class ContainerBreaker extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -71,7 +71,7 @@ public class ContainerCanolaPress extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -61,7 +61,7 @@ public class ContainerCoalGenerator extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -92,7 +92,7 @@ public class ContainerCoffeeMachine extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -96,7 +96,7 @@ public class ContainerDrill extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -63,7 +63,7 @@ public class ContainerDropper extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -93,7 +93,7 @@ public class ContainerEnergizer extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -92,7 +92,7 @@ public class ContainerEnervator extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -58,7 +58,7 @@ public class ContainerFeeder extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -70,7 +70,7 @@ public class ContainerFermentingBarrel extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -68,7 +68,7 @@ public class ContainerFluidCollector extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -72,7 +72,7 @@ public class ContainerFurnaceDouble extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -63,7 +63,7 @@ public class ContainerGiantChest extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -80,7 +80,7 @@ public class ContainerGrinder extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -74,7 +74,7 @@ public class ContainerInputter extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -65,7 +65,7 @@ public class ContainerOilGenerator extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -63,7 +63,7 @@ public class ContainerPhantomPlacer extends Container{
return null;
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -62,7 +62,7 @@ public class ContainerRepairer extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();

View file

@ -55,7 +55,7 @@ public class ContainerXPSolidifier extends Container{
}
else if(slot >= inventoryEnd+1 && slot < hotbarEnd+1 && !this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
}
else if(!this.mergeItemStack(newStack, inventoryStart, inventoryEnd+1, false)) return null;
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)) return null;
if (newStack.stackSize == 0) theSlot.putStack(null);
else theSlot.onSlotChanged();