Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ae9e597

Browse files
committed
fixed 1 mb of fluid getting stuck in generators
1 parent 659c312 commit ae9e597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/muramasa/antimatter/capability/machine/MachineRecipeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ protected boolean consumeGeneratorResources(boolean simulate) {
493493
FluidHolder mFluid = tile.fluidHandler.map(f -> f.getInputTanks().getTank(0).getStoredFluid()).orElse(FluidHooks.emptyFluid());
494494
if (mFluid.isEmpty()) return false;
495495
long fluidAmount = mFluid.getFluidAmount() / TesseractGraphWrappers.dropletMultiplier;
496-
if (toInsert > 0 && toConsume > 0 && fluidAmount > toConsume) {
496+
if (toInsert > 0 && toConsume > 0 && fluidAmount >= toConsume) {
497497
long tFluidAmountToUse = Math.min(fluidAmount / toConsume, (handler.getCapacity() - handler.getEnergy()) / toInsert);
498498
if (tFluidAmountToUse > 0 && handler.insertInternal(tFluidAmountToUse * toInsert, true) == tFluidAmountToUse * toInsert) {
499499
if (tile.getLevel().getGameTime() % 10 == 0 && !simulate){

0 commit comments

Comments
 (0)