No need to save item if remaining count is greater than disposed count.
This commit is contained in:
@@ -3853,12 +3853,6 @@ public class PlayerInstance extends Playable
|
|||||||
{
|
{
|
||||||
item.changeCountWithoutTrace(process, -count, this, reference);
|
item.changeCountWithoutTrace(process, -count, this, reference);
|
||||||
item.setLastChange(ItemInstance.MODIFIED);
|
item.setLastChange(ItemInstance.MODIFIED);
|
||||||
|
|
||||||
// could do also without saving, but let's save approx 1 of 10
|
|
||||||
if ((GameTimeController.getGameTicks() % 10) == 0)
|
|
||||||
{
|
|
||||||
item.updateDatabase();
|
|
||||||
}
|
|
||||||
_inventory.refreshWeight();
|
_inventory.refreshWeight();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user