No need to save item if remaining count is greater than disposed count.

This commit is contained in:
MobiusDevelopment 2020-04-28 02:49:23 +00:00
parent b15e5e1d1b
commit fe4703b1c2

View File

@ -3853,12 +3853,6 @@ public class PlayerInstance extends Playable
{
item.changeCountWithoutTrace(process, -count, this, reference);
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();
}
}