Crude fix for weird energy counter interface direction on placement

This commit is contained in:
DBotThePony 2022-01-09 15:15:38 +07:00
parent 90d6e85207
commit 3039bff89b
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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!!)
}