Skip to content

Commit 28202fd

Browse files
Fix fluid amount
1 parent ac0d53b commit 28202fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/silvermoon/boxplusplus/util/FluidContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void addFluidStack(FluidStack input, int multiple) {
2323

2424
if (stacks.containsKey(key)) {
2525
FluidStack stack = stacks.get(key);
26-
stack.amount = (int) Math.min((long) stack.amount * amountToAdd, Integer.MAX_VALUE);
26+
stack.amount = (int) Math.min((long) stack.amount + amountToAdd, Integer.MAX_VALUE);
2727
} else {
2828
FluidStack copied = new FluidStack(input, amountToAdd);
2929
copied.tag = nbt;

0 commit comments

Comments
 (0)