mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +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,9 +266,14 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
||||||
* @return If the Item is filtered correctly
|
* @return If the Item is filtered correctly
|
||||||
*/
|
*/
|
||||||
private boolean checkBothFilters(ItemStack stack, boolean output){
|
private boolean checkBothFilters(ItemStack stack, boolean output){
|
||||||
|
if(!this.isAdvanced){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else{
|
||||||
int slotStart = output ? PUT_FILTER_START : PULL_FILTER_START;
|
int slotStart = output ? PUT_FILTER_START : PULL_FILTER_START;
|
||||||
return TileEntityLaserRelayItemWhitelist.checkFilter(stack, output ? this.isPutWhitelist : this.isPullWhitelist, this.slots, slotStart, slotStart+12);
|
return TileEntityLaserRelayItemWhitelist.checkFilter(stack, output ? this.isPutWhitelist : this.isPullWhitelist, this.slots, slotStart, slotStart+12);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets all of the relevant variables
|
* Sets all of the relevant variables
|
||||||
|
|
Loading…
Reference in a new issue