diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt index c12d6d5b1..74216b68f 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryDeviceBlockEntity.kt @@ -447,7 +447,9 @@ abstract class MatteryDeviceBlockEntity(blockEntityType: BlockEntityType<*>, blo if (input == null && output == null && inputOutput == null) { return ItemHandlerMode.DISABLED - } else if (input != null && output != null || inputOutput != null) { + } else if (inputOutput != null) { + return ItemHandlerMode.INPUT_OUTPUT + } else if (input != null && output != null) { return when (side) { RelativeSide.FRONT, RelativeSide.BACK -> ItemHandlerMode.DISABLED RelativeSide.RIGHT, RelativeSide.TOP -> ItemHandlerMode.INPUT