Skip to content

Commit a43155b

Browse files
committed
Fix armor damage + arrows on reset command
1 parent e327d13 commit a43155b

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
@@ -297,15 +297,15 @@ private void fixItemLore(ItemStack original, Player player) {
297297
if (container.has(toolStats.armorDamage, PersistentDataType.DOUBLE)) {
298298
Double damage = container.get(toolStats.armorDamage, PersistentDataType.DOUBLE);
299299
if (damage != null) {
300-
toolStats.configTools.formatLore("damage-taken", "{damage}", toolStats.numberFormat.formatDouble(damage));
300+
lore.add(toolStats.configTools.formatLore("damage-taken", "{damage}", toolStats.numberFormat.formatDouble(damage)));
301301
}
302302
}
303303
}
304304
if (toolStats.config.getBoolean("enabled.arrows-shot")) {
305305
if (container.has(toolStats.arrowsShot, PersistentDataType.INTEGER)) {
306306
Integer arrows = container.get(toolStats.arrowsShot, PersistentDataType.INTEGER);
307307
if (arrows != null) {
308-
toolStats.configTools.formatLore("arrows-shot", "{arrows}", toolStats.numberFormat.formatInt(arrows));
308+
lore.add(toolStats.configTools.formatLore("arrows-shot", "{arrows}", toolStats.numberFormat.formatInt(arrows)));
309309
}
310310
}
311311
}

0 commit comments

Comments
 (0)