final fix for state updating.

This commit is contained in:
Brianna 2019-04-15 21:06:23 -04:00
parent 602af1dd19
commit e63028d217

View File

@ -136,13 +136,13 @@ 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(); hopperState.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(); hopperState.update();
continue main; continue main;
} }
} }