diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index f98f7cce86..3c3d0f2694 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -989,11 +989,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 1d4a07251c..ac72537c31 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -989,11 +989,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 1d4a07251c..ac72537c31 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -989,11 +989,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 1d4a07251c..ac72537c31 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -989,11 +989,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 2158e04195..16afae4ca4 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -993,11 +993,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 2158e04195..16afae4ca4 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -993,11 +993,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 2158e04195..16afae4ca4 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -993,11 +993,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 2158e04195..16afae4ca4 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -993,11 +993,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index f337a29e94..738519c141 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -994,11 +994,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index f337a29e94..738519c141 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -994,11 +994,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index fa6e615c90..9fb0b948e1 100644 --- a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index fa6e615c90..9fb0b948e1 100644 --- a/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_10.3_MasterClass/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_1.0/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_1.0/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 596a276e6d..22fa6c7872 100644 --- a/L2J_Mobius_Classic_1.0/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_1.0/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1065,11 +1065,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 596a276e6d..22fa6c7872 100644 --- a/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_1.5_AgeOfSplendor/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1065,11 +1065,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } 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 8cc0f3c278..530bfd3ae0 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 @@ -1065,11 +1065,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 8cc0f3c278..530bfd3ae0 100644 --- a/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.5_Zaken/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1065,11 +1065,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index b011a3e9e8..7b9d501c79 100644 --- a/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.7_Antharas/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1069,11 +1069,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index b011a3e9e8..7b9d501c79 100644 --- a/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.8_SevenSigns/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1069,11 +1069,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index b011a3e9e8..7b9d501c79 100644 --- a/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.9.5_Saviors/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1069,11 +1069,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index b011a3e9e8..7b9d501c79 100644 --- a/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Classic_2.9_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1069,11 +1069,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } 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 b011a3e9e8..7b9d501c79 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 @@ -1069,11 +1069,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } 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 f98f7cce86..3c3d0f2694 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 @@ -989,11 +989,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 35d5ab6ae0..f5330d7f54 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 35d5ab6ae0..f5330d7f54 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 35d5ab6ae0..f5330d7f54 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } } diff --git a/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java b/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java index 35d5ab6ae0..f5330d7f54 100644 --- a/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java +++ b/L2J_Mobius_Essence_6.3_Crusader/java/org/l2jmobius/gameserver/model/itemcontainer/PlayerInventory.java @@ -1021,11 +1021,25 @@ public class PlayerInventory extends Inventory } case WHITELIST: { - return blockedItems.stream().anyMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return true; + } + } + return false; } case BLACKLIST: { - return blockedItems.stream().noneMatch(id -> id == itemId); + for (int id : blockedItems) + { + if (id == itemId) + { + return false; + } + } + return true; } } }