Fixed a bug with a non-advanced ESD crashing once trying to put items through it.

Yes, really.
This commit is contained in:
Ellpeck 2016-06-09 23:43:54 +02:00
parent ccb162820b
commit 4b8d85fd11

View file

@ -266,8 +266,13 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
* @return If the Item is filtered correctly
*/
private boolean checkBothFilters(ItemStack stack, boolean output){
int slotStart = output ? PUT_FILTER_START : PULL_FILTER_START;
return TileEntityLaserRelayItemWhitelist.checkFilter(stack, output ? this.isPutWhitelist : this.isPullWhitelist, this.slots, slotStart, slotStart+12);
if(!this.isAdvanced){
return true;
}
else{
int slotStart = output ? PUT_FILTER_START : PULL_FILTER_START;
return TileEntityLaserRelayItemWhitelist.checkFilter(stack, output ? this.isPutWhitelist : this.isPullWhitelist, this.slots, slotStart, slotStart+12);
}
}
/**