mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-01-07 16:37:58 +01:00
Test fix for state updating.
This commit is contained in:
parent
e65abd365a
commit
602af1dd19
@ -136,11 +136,13 @@ public class HopHandler {
|
||||
if (!whiteList.isEmpty()
|
||||
&& whiteList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
||||
doBlacklist(hopperState, hopper, hopperContents[i].clone(), amount, i);
|
||||
block.getState().update();
|
||||
continue main;
|
||||
}
|
||||
|
||||
if (blackList.stream().noneMatch(itemStack -> itemStack.isSimilar(hopperContents[finalIncrement]))) {
|
||||
if (addItem(hopperState, hopper, destinationInventory, destinationBlock, hopperContents[i], amount, i)) {
|
||||
block.getState().update();
|
||||
continue main;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user