maybe fix matter bottler getting stuck?
This commit is contained in:
parent
a54382b74e
commit
2453c60d76
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user