From 611492319f36aa4d633e92c646216b4e5ff4e232 Mon Sep 17 00:00:00 2001 From: Jonathing Date: Sat, 14 Dec 2024 17:51:50 -0500 Subject: [PATCH] revert fix of suspicious int casting in getTotalxp() --- src/main/java/net/lyof/sortilege/utils/XPHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/lyof/sortilege/utils/XPHelper.java b/src/main/java/net/lyof/sortilege/utils/XPHelper.java index 7ffde39..56dc81f 100644 --- a/src/main/java/net/lyof/sortilege/utils/XPHelper.java +++ b/src/main/java/net/lyof/sortilege/utils/XPHelper.java @@ -48,7 +48,7 @@ public static int getTotalxp(int level, float progress, ServerLevel server) { for (int i = 0; i <= level; i++) { dummy.experienceLevel = i; - total += (int) (dummy.getXpNeededForNextLevel() * (i == level ? progress : 1)); + total += dummy.getXpNeededForNextLevel() * (i == level ? progress : 1); } totalxpCache.put(level, total);