Потому-что свет должен знать, к какой лампе он принадлежит
This commit is contained in:
parent
9025036a6f
commit
92c9339dbb
@ -26,6 +26,7 @@ import ru.dbotthepony.mc.otm.core.get
|
||||
import ru.dbotthepony.mc.otm.core.math.BlockRotationFreedom
|
||||
import ru.dbotthepony.mc.otm.core.math.blockRotation
|
||||
import ru.dbotthepony.mc.otm.core.math.plus
|
||||
import ru.dbotthepony.mc.otm.core.math.unaryMinus
|
||||
import ru.dbotthepony.mc.otm.once
|
||||
import ru.dbotthepony.mc.otm.registry.MBlocks
|
||||
|
||||
@ -186,7 +187,7 @@ 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.opposite)
|
||||
.setValue(FACING_FULL, facing.oppositeFront)
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user