This commit is contained in:
GearShocky 2022-10-13 16:39:27 +06:00
parent 23532400bf
commit 2fcc5ffb07

View File

@ -143,6 +143,12 @@ class LaboratoryLamp(val invertRedstone: Boolean) : Block(Properties.of(Material
doTick(state, level, pos)
}
@Suppress("OVERRIDE_DEPRECATION")
override fun rotate(blockState: BlockState, rotation: Rotation): BlockState {
@Suppress("DEPRECATION")
return super.rotate(blockState, rotation).setValue(RotatableMatteryBlock.FACING_FULL, rotation.rotate(blockState[RotatableMatteryBlock.FACING_FULL]))
}
fun doTick(
state: BlockState,
level: Level,