forked from MagicBane/Server
More item refactor work.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user