From 227723fe10b96a612e37f6bd7f1e382b41493ef0 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Tue, 10 Sep 2024 17:08:40 -0400 Subject: [PATCH] fix #75 --- .../java/lol/hyper/toolstats/events/EntityDamage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/lol/hyper/toolstats/events/EntityDamage.java b/src/main/java/lol/hyper/toolstats/events/EntityDamage.java index afbcb8a..0676426 100644 --- a/src/main/java/lol/hyper/toolstats/events/EntityDamage.java +++ b/src/main/java/lol/hyper/toolstats/events/EntityDamage.java @@ -367,8 +367,8 @@ public class EntityDamage implements Listener { // do we add the lore based on the config? if (toolStats.configTools.checkConfig(newTrident.getType(), "mob-kills")) { - String oldMobKillsFormatted = toolStats.numberFormat.formatDouble(mobKills); - String newMobKillsFormatted = toolStats.numberFormat.formatDouble(mobKills + 1); + String oldMobKillsFormatted = toolStats.numberFormat.formatInt(mobKills); + String newMobKillsFormatted = toolStats.numberFormat.formatInt(mobKills + 1); String oldLine = toolStats.configTools.formatLore("kills.mob", "{kills}", oldMobKillsFormatted); String newLine = toolStats.configTools.formatLore("kills.mob", "{kills}", newMobKillsFormatted); if (oldLine == null || newLine == null) { @@ -408,8 +408,8 @@ public class EntityDamage implements Listener { // do we add the lore based on the config? if (toolStats.configTools.checkConfig(newTrident.getType(), "player-kills")) { - String oldPlayerKillsFormatted = toolStats.numberFormat.formatDouble(playerKills); - String newPlayerKillsFormatted = toolStats.numberFormat.formatDouble(playerKills + 1); + String oldPlayerKillsFormatted = toolStats.numberFormat.formatInt(playerKills); + String newPlayerKillsFormatted = toolStats.numberFormat.formatInt(playerKills + 1); String oldLine = toolStats.configTools.formatLore("kills.player", "{kills}", oldPlayerKillsFormatted); String newLine = toolStats.configTools.formatLore("kills.player", "{kills}", newPlayerKillsFormatted); if (oldLine == null || newLine == null) {