Skip to content

Commit

Permalink
Fix #159
Browse files Browse the repository at this point in the history
  • Loading branch information
Rastus2203 committed Dec 25, 2024
1 parent deddf5f commit d45926a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ public long extract(FluidVariant resource, long maxAmount, TransactionContext tr
transaction.addOuterCloseCallback((result) -> {
if (result.wasCommitted()) {
if (fluid.getAmount() <= 0) {
SmelteryTank.this.fluids.remove(slot);
if (!SmelteryTank.this.fluids.isEmpty()) {
SmelteryTank.this.fluids.remove(slot);
}
parent.notifyFluidsChanged(FluidChange.REMOVED, fluid);
} else {
parent.notifyFluidsChanged(FluidChange.CHANGED, fluid);
Expand Down

0 comments on commit d45926a

Please sign in to comment.