Variable renamed to conform with json
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user