diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt index 9f2ff0552..7fcf7bcf5 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterReconstructorBlockEntity.kt @@ -137,13 +137,18 @@ class MatterReconstructorBlockEntity(blockPos: BlockPos, blockState: BlockState) matterNode.discover(this) } + private var changeset = 0 + private fun containerChanged() { matterPerTick = Decimal.ZERO progressPerTick = 0.0 val item = repairContainer[0] + val thisChangeset = ++changeset tickList.once { + if (thisChangeset != changeset) return@once + if (lastItem != item.item) { lastItem = item.item repairProgress = 0.0