почему у прозрачного блока есть СТОРОНЫ БЛЯТЬ

This commit is contained in:
YuRaNnNzZZ 2023-03-10 23:44:34 +03:00
parent 288b2522c7
commit 9025036a6f
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D

View File

@ -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) {