mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fixed a Bug with the ESD not asking if the Item is valid for a Slot when the slot content is null
This commit is contained in:
parent
a6053be99e
commit
9c931c7836
2 changed files with 1 additions and 2 deletions
|
@ -67,7 +67,6 @@ public class TileEntityEnergizer extends TileEntityInventoryBase implements IEne
|
|||
|
||||
@Override
|
||||
public boolean canExtractItem(int slot, ItemStack stack, int side){
|
||||
System.out.println(stack.getItem() instanceof IEnergyContainerItem);
|
||||
return slot == 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
if(tempStack.getMaxStackSize() < theInventory.getInventoryStackLimit()) maxSize = tempStack.getMaxStackSize();
|
||||
else maxSize = theInventory.getInventoryStackLimit();
|
||||
}
|
||||
if((tempStack == null || (theInventory.isItemValidForSlot(i, this.slots[0]) && tempStack.isItemEqual(this.slots[0]) && tempStack.stackSize < maxSize)) && this.checkFilters(this.slots[0], false, isPutWhitelist)){
|
||||
if(theInventory.isItemValidForSlot(i, this.slots[0]) && (tempStack == null || (tempStack.isItemEqual(this.slots[0]) && tempStack.stackSize < maxSize)) && this.checkFilters(this.slots[0], false, isPutWhitelist)){
|
||||
if(theSided != null){
|
||||
for(int j = 0; j < 5; j++){
|
||||
if(theSided.canInsertItem(i, this.slots[0], j)){
|
||||
|
|
Loading…
Reference in a new issue