hmm
This commit is contained in:
parent
d373393a5c
commit
42dcd22043
@ -230,7 +230,7 @@ class MatterReconstructorBlockEntity(blockPos: BlockPos, blockState: BlockState)
|
||||
val graph = matterNode.graph as MatterGraph?
|
||||
|
||||
if (graph != null) {
|
||||
val toDrain = (matterPerTick * EXTRACT_TICKS.coerceAtMost(item.damageValue)).coerceAtLeast(Decimal.ZERO).coerceAtMost(matter.missingMatter)
|
||||
val toDrain = (matterPerTick * EXTRACT_TICKS.coerceAtMost(item.damageValue) - matter.storedMatter).coerceAtLeast(Decimal.ZERO).coerceAtMost(matter.missingMatter)
|
||||
matter.receiveMatterInner(graph.extractMatter(toDrain, false), false)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user