mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Fixed a bug with a non-advanced ESD crashing once trying to put items through it.
Yes, really.
This commit is contained in:
parent
ccb162820b
commit
4b8d85fd11
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue