made filter settings ignore the filter item

This commit is contained in:
Ellpeck 2016-12-27 11:43:56 +01:00
parent f0713b56ec
commit 28f7fe4a2b

View file

@ -65,10 +65,7 @@ public class FilterSettings{
if(StackUtil.isValid(stack)){
for(int i = startSlot; i < endSlot; i++){
if(StackUtil.isValid(slots[i])){
if(areEqualEnough(slots[i], stack, meta, nbt, mod, oredict)){
return whitelist;
}
else if(slots[i].getItem() instanceof ItemFilter){
if(slots[i].getItem() instanceof ItemFilter){
ItemStack[] filterSlots = new ItemStack[ContainerFilter.SLOT_AMOUNT];
ItemDrill.loadSlotsFromNBT(filterSlots, slots[i]);
if(filterSlots != null && filterSlots.length > 0){
@ -79,6 +76,9 @@ public class FilterSettings{
}
}
}
else if(areEqualEnough(slots[i], stack, meta, nbt, mod, oredict)){
return whitelist;
}
}
}
}