Variable renamed to conform with json

This commit is contained in:
2024-03-25 05:25:09 -04:00
parent 28b0fd6fd4
commit f523e4832e
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -2339,7 +2339,7 @@ public class CharacterItemManager {
if (!item.isCanDestroy())
return;
int dur = (int) (short) item.durabilityCurrent;
int dur = (int) (short) item.combat_health_current;
if (dur - amount <= 0) {
//destroy the item
@@ -2352,7 +2352,7 @@ public class CharacterItemManager {
dur -= amount;
if (!DbManager.ItemQueries.SET_DURABILITY(item, dur))
return;
item.setDurabilityCurrent((short) dur);
item.setCombat_health_current((short) dur);
}