Compare commits

...
@@ -487,9 +487,13 @@ class FossilMultiblockStructure (
} else { } else {
getProgressScreen((TIME_TO_TAKE - timeRemaining) / TIME_PER_STAGE) getProgressScreen((TIME_TO_TAKE - timeRemaining) / TIME_PER_STAGE)
} }
val monitorState = world.getBlockState(monitorPos) val monitorState = world.getBlockState(monitorPos)
if (monitorState.contains(MonitorBlock.SCREEN)) {
world.setBlockState(monitorPos, monitorState.with(MonitorBlock.SCREEN, screenID)) world.setBlockState(monitorPos, monitorState.with(MonitorBlock.SCREEN, screenID))
} }
}
fun getProgressScreen(progress:Int) : MonitorBlock.MonitorScreen { fun getProgressScreen(progress:Int) : MonitorBlock.MonitorScreen {
return when (progress) { return when (progress) {