mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-20 14:01:44 +01:00
quick fix 2
This commit is contained in:
parent
98ba629b89
commit
8224cccd50
@ -136,13 +136,11 @@ public class HopHandler {
|
|||||||
if (!whiteList.isEmpty()
|
if (!whiteList.isEmpty()
|
||||||
&& whiteList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
&& whiteList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
||||||
doBlacklist(hopperState, hopper, hopperContents[i].clone(), amount, i);
|
doBlacklist(hopperState, hopper, hopperContents[i].clone(), amount, i);
|
||||||
block.getState().update();
|
|
||||||
continue main;
|
continue main;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blackList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
if (blackList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
||||||
if (addItem(hopperState, hopper, destinationInventory, destinationBlock, hopperContents[i], amount, i)) {
|
if (addItem(hopperState, hopper, destinationInventory, destinationBlock, hopperContents[i], amount, i)) {
|
||||||
block.getState().update();
|
|
||||||
continue main;
|
continue main;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user