More item refactor work.

This commit is contained in:
2024-03-02 10:52:20 -05:00
parent 5736f0a7a3
commit d05dbef71d
2 changed files with 17 additions and 14 deletions
+2 -3
View File
@@ -50,7 +50,7 @@ public class Item extends AbstractWorldObject {
private int numberOfItems;
public float durabilityCurrent;
public int chargesRemaining;
private byte equipSlot;
public byte equipSlot;
private boolean canDestroy;
private boolean isRandom = false;
private int value;
@@ -627,11 +627,10 @@ public class Item extends AbstractWorldObject {
if (persist) {
try {
newGold = DbManager.ItemQueries.PERSIST(newGold);
DbManager.ItemQueries.ZERO_ITEM_STACK(newGold);
} catch (Exception e) {
Logger.error(e);
}
DbManager.ItemQueries.ZERO_ITEM_STACK(newGold);
}
return newGold;