Fix hopper minecart being unable to pick up item entities on top of the saw. Remove item handler capability from bottom of saw to achieve this. It is unlocigal logistical components could access the saw from the bottom anyways.

This commit is contained in:
grimmauld 2020-09-06 13:14:52 +02:00
parent 25bce3fc17
commit e493ab9ce1

View File

@ -197,7 +197,7 @@ public class SawTileEntity extends BlockBreakingKineticTileEntity {
@Override
public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
if (cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
if (cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY && side != Direction.DOWN)
return invProvider.cast();
return super.getCapability(cap, side);
}