From 0ae77db2326ea1cddde739cc1594f5518753d486 Mon Sep 17 00:00:00 2001 From: littlebroto1 <38365568+littlebroto1@users.noreply.github.com> Date: Sun, 27 Nov 2022 14:56:44 -0600 Subject: Update SlayerOverlay.java (#450) --- .../io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java index 95447398..acc9be82 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java @@ -222,7 +222,7 @@ public class SlayerOverlay extends TextOverlay { untilNextSlayerLevel = xpToLevelUp - slayerIntXP; if (xpPerBoss != 0 && untilNextSlayerLevel != 0 && xpToLevelUp != 0) { - bossesUntilNextLevel = (int) Math.ceil((xpToLevelUp - untilNextSlayerLevel) / xpPerBoss); + bossesUntilNextLevel = (int) Math.ceil((float) (xpToLevelUp - untilNextSlayerLevel) / (float)(xpPerBoss)); } else { bossesUntilNextLevel = 0; } -- cgit