aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorlittlebroto1 <38365568+littlebroto1@users.noreply.github.com>2022-11-27 14:56:44 -0600
committerGitHub <noreply@github.com>2022-11-27 21:56:44 +0100
commit0ae77db2326ea1cddde739cc1594f5518753d486 (patch)
tree2fd911179d8bb4a39e4485995e9e9ad7aa2ee8ec /src/main/java/io
parentd0617ef3799fe7c91756c1e01a2710572ddb84ec (diff)
downloadNotEnoughUpdates-0ae77db2326ea1cddde739cc1594f5518753d486.tar.gz
NotEnoughUpdates-0ae77db2326ea1cddde739cc1594f5518753d486.tar.bz2
NotEnoughUpdates-0ae77db2326ea1cddde739cc1594f5518753d486.zip
Update SlayerOverlay.java (#450)
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/SlayerOverlay.java2
1 files changed, 1 insertions, 1 deletions
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;
}