Merge branch '1.21' into new-container-api

This commit is contained in:
DBotThePony 2025-03-16 00:31:14 +07:00
commit 95f19bc18f
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -109,10 +109,15 @@ class MatterDecomposerBlockEntity(pos: BlockPos, state: BlockState)
if (!status.job.matterValue.isZero)
status.throttleFast()
} else {
status.job.matterValue -= matter.receiveMatter(status.job.matterValue, false)
val received = matter.receiveMatter(status.job.matterValue, false)
status.job.matterValue -= received
if (status.job.matterValue.isPositive)
status.noMatter()
if (status.job.matterValue.isPositive) {
if (received.isPositive)
status.noMatter(1)
else
status.noMatter()
}
}
}