почему у прозрачного блока есть СТОРОНЫ БЛЯТЬ
This commit is contained in:
parent
288b2522c7
commit
9025036a6f
@ -185,8 +185,9 @@ class LaboratoryLamp(val invertRedstone: Boolean) : Block(Properties.of(Material
|
|||||||
|
|
||||||
if (shouldBeLit) {
|
if (shouldBeLit) {
|
||||||
if (targetState.isAir && targetState.block != MBlocks.LABORATORY_LAMP_LIGHT) {
|
if (targetState.isAir && targetState.block != MBlocks.LABORATORY_LAMP_LIGHT) {
|
||||||
level.setBlockAndUpdate(target, MBlocks.LABORATORY_LAMP_LIGHT.defaultBlockState().setValue(
|
level.setBlockAndUpdate(target, MBlocks.LABORATORY_LAMP_LIGHT.defaultBlockState()
|
||||||
FACING_FULL, -facing))
|
.setValue(FACING_FULL, facing.opposite)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (targetState.block == MBlocks.LABORATORY_LAMP_LIGHT) {
|
if (targetState.block == MBlocks.LABORATORY_LAMP_LIGHT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user