Do not save arrows based on GameTimeController calculation.

This commit is contained in:
MobiusDevelopment
2020-03-31 17:13:51 +00:00
parent c759c4629d
commit 0c0bc9a33a
17 changed files with 15 additions and 147 deletions

View File

@@ -30,7 +30,6 @@ import java.util.stream.Collectors;
import org.l2jmobius.Config;
import org.l2jmobius.commons.database.DatabaseFactory;
import org.l2jmobius.gameserver.GameTimeController;
import org.l2jmobius.gameserver.datatables.ItemTable;
import org.l2jmobius.gameserver.enums.InventoryBlockType;
import org.l2jmobius.gameserver.enums.ItemLocation;
@@ -968,14 +967,7 @@ public class PlayerInventory extends Inventory
return;
}
if ((GameTimeController.getInstance().getGameTicks() % 10) == 0)
{
updateItemCount(null, arrows, -1, _owner, null);
}
else
{
updateItemCountNoDbUpdate(null, arrows, -1, _owner, null);
}
updateItemCountNoDbUpdate(null, arrows, -1, _owner, null);
}
/**