Closed SiverDX closed 1 year ago
Should fix #41
Cannot test it since I have no experience with the mod(s) invovled, but here is the reasoning:
Water level is 2 I have 5 Bottles
Math.max(5, 1) It now tries to increment by 5 since that is the higher value
Math.max(5, 1)
Math.min(5, 1) It increments by 1 and that is all we need
Math.min(5, 1)
Water level is 1 I have 1 Bottle
Math.max(1, 2) It now tries to increment by 2 even though I only have 1 Bottle
Math.max(1, 2)
Math.min(1, 2) It increments by 1 since I only have 1 bottle
Math.min(1, 2)
With min it should only increment by a maximum of 3 since that is the highest 3 - waterLevel can go
min
3 - waterLevel
Thank you for the fix!
Should fix #41
Cannot test it since I have no experience with the mod(s) invovled, but here is the reasoning:
Water level is 2 I have 5 Bottles
Math.max(5, 1)
It now tries to increment by 5 since that is the higher valueMath.min(5, 1)
It increments by 1 and that is all we needWater level is 1 I have 1 Bottle
Math.max(1, 2)
It now tries to increment by 2 even though I only have 1 BottleMath.min(1, 2)
It increments by 1 since I only have 1 bottleWith
min
it should only increment by a maximum of 3 since that is the highest3 - waterLevel
can go