From 3039bff89b0f155d26fda7f7dda4f9104e512a65 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Jan 2022 15:15:38 +0700 Subject: [PATCH] Crude fix for weird energy counter interface direction on placement --- .../kotlin/ru/dbotthepony/mc/otm/block/BlockEnergyCounter.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/BlockEnergyCounter.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/BlockEnergyCounter.kt index 798787de6..e656388a0 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/BlockEnergyCounter.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/BlockEnergyCounter.kt @@ -49,6 +49,10 @@ class BlockEnergyCounter : BlockMattery(), EntityBlock { } } + if ((inputDir === Direction.WEST || inputDir === Direction.EAST) && (dir === Direction.UP || dir === Direction.DOWN)) { + dir = dir.opposite + } + return defaultBlockState().setValue(INPUT_DIRECTION, inputDir).setValue(IF_DIRECTION, dir!!) }