Skip to content

Commit 3767ee2

Browse files
committed
fixed reseting lore for armor
1 parent 7d5f73a commit 3767ee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ private void fixItemLore(ItemStack original, Player player) {
244244
}
245245
}
246246
if (toolStats.config.getBoolean("enabled.armor-damage")) {
247-
if (container.has(toolStats.armorDamage, PersistentDataType.INTEGER)) {
248-
Integer damage = container.get(toolStats.armorDamage, PersistentDataType.INTEGER);
247+
if (container.has(toolStats.armorDamage, PersistentDataType.DOUBLE)) {
248+
Double damage = container.get(toolStats.armorDamage, PersistentDataType.DOUBLE);
249249
if (damage != null) {
250250
lore.add(toolStats.getLoreFromConfig("damage-taken", true).replace("{damage}", toolStats.commaFormat.format(damage)));
251251
}

0 commit comments

Comments
 (0)