From 9025036a6fe7455afcb44c2945c9cbe415b9203e Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Fri, 10 Mar 2023 23:44:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B5=D0=BC=D1=83=20=D1=83?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B7=D1=80=D0=B0=D1=87=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B0=20=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D0=A1=D0=A2=D0=9E=D0=A0=D0=9E=D0=9D=D0=AB=20=D0=91?= =?UTF-8?q?=D0=9B=D0=AF=D0=A2=D0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/dbotthepony/mc/otm/block/decorative/LaboratoryLamp.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 1392e4894..b6e107560 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 @@ -185,8 +185,9 @@ class LaboratoryLamp(val invertRedstone: Boolean) : Block(Properties.of(Material if (shouldBeLit) { if (targetState.isAir && targetState.block != MBlocks.LABORATORY_LAMP_LIGHT) { - level.setBlockAndUpdate(target, MBlocks.LABORATORY_LAMP_LIGHT.defaultBlockState().setValue( - FACING_FULL, -facing)) + level.setBlockAndUpdate(target, MBlocks.LABORATORY_LAMP_LIGHT.defaultBlockState() + .setValue(FACING_FULL, facing.opposite) + ) } } else { if (targetState.block == MBlocks.LABORATORY_LAMP_LIGHT) {