Check if we gonna automate anything before checking neighbour slot count
This commit is contained in:
parent
1c8995f8ae
commit
3354c698c4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user