We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc5df0 commit 74c6d0eCopy full SHA for 74c6d0e
1 file changed
invui/src/main/java/xyz/xenondevs/invui/internal/menu/CustomBrewingStandMenu.java
@@ -27,7 +27,7 @@ public void setBrewProgress(double progress) {
27
if (progress < 0 || progress > 1)
28
throw new IllegalArgumentException("Brew progress must be between 0 and 1, but was " + progress);
29
30
- int brewTicks = (int) Math.round((1 - progress) * 400);
+ int brewTicks = progress == 0.0 ? 0 : (int) Math.round((1 - progress) * 400);
31
dataSlots[0] = brewTicks;
32
}
33
0 commit comments