maybe fix matter bottler getting stuck?

This commit is contained in:
DBotThePony 2025-04-05 00:03:50 +07:00
parent a54382b74e
commit 2453c60d76
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -190,7 +190,7 @@ class MatterBottlerBlockEntity(blockPos: BlockPos, blockState: BlockState) :
if (matter.storedMatter < rate) {
val toExtract = matter.missingMatter
.coerceAtMost(rate * 200)
.coerceAtMost(capability.missingMatter - matter.storedMatter)
.coerceAtMost((capability.missingMatter - matter.storedMatter).coerceAtLeast(Decimal.ONE))
matter.receiveMatter(matterNode.graph.extractMatter(toExtract, false), false)
}