diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/decorative/LaboratoryLamp.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/decorative/LaboratoryLamp.kt index 17ace9ebe..1392e4894 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/decorative/LaboratoryLamp.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/decorative/LaboratoryLamp.kt @@ -119,7 +119,7 @@ class LaboratoryLamp(val invertRedstone: Boolean) : Block(Properties.of(Material override fun getStateForPlacement(context: BlockPlaceContext): BlockState { return super.getStateForPlacement(context)!! .setValue(BlockStateProperties.LIT, !invertRedstone) - .setValue(FACING_FULL, -context.nearestLookingDirection.blockRotation) + .setValue(FACING_FULL, context.nearestLookingDirection.blockRotation.oppositeFront) } override fun appendHoverText( diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/BlockRotation.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/BlockRotation.kt index 496ce6645..1985f0925 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/BlockRotation.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/BlockRotation.kt @@ -155,6 +155,8 @@ enum class BlockRotation( val opposite by lazy { of(front.opposite, top.opposite) } val normal: Vec3i get() = front.normal + val oppositeFront by lazy { of(front.opposite, top) } + companion object { @JvmStatic fun of(direction: Direction): BlockRotation {