diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index f3e4aa2c81..599ca25c08 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2202,7 +2202,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index c1dcd68abd..5228ad8a48 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index c1dcd68abd..5228ad8a48 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 3a7ba91768..31006fa918 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index cbaa213cb0..aa7934b96c 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2221,7 +2221,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 9dc46553a0..f0b29ddde3 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2518,7 +2518,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 9dc46553a0..f0b29ddde3 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2518,7 +2518,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 32cce45ba1..a9d7b3c4d6 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2502,7 +2502,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index c1dcd68abd..5228ad8a48 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index c1dcd68abd..5228ad8a48 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 1c36492afd..8d7ff1545f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2227,7 +2227,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 3f08e4f239..bb2d048efd 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2518,7 +2518,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 3f08e4f239..bb2d048efd 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2518,7 +2518,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 311104562c..b17a536c83 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2502,7 +2502,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item)) diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java index c1dcd68abd..5228ad8a48 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -2208,7 +2208,7 @@ public abstract class Inventory extends ItemContainer filter = filter.and(additionalFilter); } - final List items = new ArrayList<>(); + final List items = new ArrayList<>(_paperdoll.length / (filters.length + 1)); for (ItemInstance item : _paperdoll) { if (filter.test(item))