mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
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:
parent
8a791da5b5
commit
b2cc628220
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue