Fixed a Bug with the ESD only checking 5 sides

(This has been happening since like 1238123 years, but no one noticed it for some reason. Or it's not a bug and I'm just not looking correctly.
Who knows.)
This commit is contained in:
Ellpeck 2015-08-09 22:04:28 +02:00
parent 8a791da5b5
commit b2cc628220

View file

@ -169,7 +169,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
//Deal with ISided //Deal with ISided
if(theSided != null){ if(theSided != null){
//Check if Item can be inserted from any Side (Because Sidedness gets ignored!) //Check if Item can be inserted from any Side (Because Sidedness gets ignored!)
for(int j = 0; j < 5; j++){ for(int j = 0; j <= 5; j++){
if(theSided.canExtractItem(i, tempStack, j)){ if(theSided.canExtractItem(i, tempStack, j)){
theStack = tempStack; theStack = tempStack;
theSlotToPull = i; theSlotToPull = i;
@ -242,7 +242,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
} }
if(theInventory.isItemValidForSlot(i, this.slots[0]) && (tempStack == null || (tempStack.isItemEqual(this.slots[0]) && tempStack.stackSize < maxSize)) && this.checkBothFilters(this.slots[0])){ if(theInventory.isItemValidForSlot(i, this.slots[0]) && (tempStack == null || (tempStack.isItemEqual(this.slots[0]) && tempStack.stackSize < maxSize)) && this.checkBothFilters(this.slots[0])){
if(theSided != null){ if(theSided != null){
for(int j = 0; j < 5; j++){ for(int j = 0; j <= 5; j++){
if(theSided.canInsertItem(i, this.slots[0], j)){ if(theSided.canInsertItem(i, this.slots[0], j)){
theStack = tempStack; theStack = tempStack;
theSlotToPut = i; theSlotToPut = i;