Fix for invalid casting for the filter.

This commit is contained in:
Brianna O'Keefe 2018-12-23 11:22:07 -05:00
parent 383a683206
commit 390c504afa

View File

@ -179,6 +179,11 @@ public class HopHandler {
}
Block b2 = dest.getBlock();
if (!(b2.getState() instanceof InventoryHolder)) {
hopper.getFilter().setEndPoint(null);
return;
}
addItem(hopperBlock, hopper, b2, item, isS, amt, place);
block.getState().update();