diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 03403f51d4..d448eff7e5 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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; @@ -964,14 +963,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); } /** diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index b7d16ed258..472762b147 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -6146,12 +6146,6 @@ public class PlayerInstance extends Playable { arrows.changeCountWithoutTrace(-1, this, null); arrows.setLastChange(ItemInstance.MODIFIED); - - // could do also without saving, but let's save approx 1 of 10 - if ((GameTimeController.getInstance().getGameTicks() % 10) == 0) - { - arrows.updateDatabase(); - } _inventory.refreshWeight(); } } diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 5ef1894610..a4fc7433eb 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -6043,12 +6043,6 @@ public class PlayerInstance extends Playable { arrows.changeCountWithoutTrace(-1, this, null); arrows.setLastChange(ItemInstance.MODIFIED); - - // could do also without saving, but let's save approx 1 of 10 - if ((GameTimeController.getInstance().getGameTicks() % 10) == 0) - { - arrows.updateDatabase(); - } _inventory.refreshWeight(); } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index dd03785a1a..63fbb5af3a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 71f513dc71..c5daf08701 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -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); } /**