Check if we gonna automate anything before checking neighbour slot count

This commit is contained in:
DBotThePony 2023-03-15 07:52:37 +07:00
parent 1c8995f8ae
commit 3354c698c4
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -358,7 +358,7 @@ abstract class MatteryDeviceBlockEntity(blockEntityType: BlockEntityType<*>, blo
private var outerSlotPush = 0
override fun tick() {
if (mode == ItemHandlerMode.DISABLED || currentHandler.slots == 0 || redstoneControl.isBlockedByRedstone)
if (mode == ItemHandlerMode.DISABLED || !automatePull && !automatePush || redstoneControl.isBlockedByRedstone || currentHandler.slots == 0)
return
neighbour.ifPresentK {