From 014863dd5fa5c9fee8a74edb5605d321010370c6 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 2 Dec 2021 15:27:52 +0000 Subject: [PATCH] RequestPurchaseLimitShopItemBuy should consider default ingredient length. --- .../limitshop/RequestPurchaseLimitShopItemBuy.java | 4 ++-- .../limitshop/RequestPurchaseLimitShopItemBuy.java | 4 ++-- .../limitshop/RequestPurchaseLimitShopItemBuy.java | 4 ++-- .../limitshop/RequestPurchaseLimitShopItemBuy.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java b/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java index bc8e3f8b3b..c6f2bf3b8a 100644 --- a/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java +++ b/L2J_Mobius_10.0_MasterClass/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java @@ -138,7 +138,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Check existing items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { @@ -171,7 +171,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Remove items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java index 551f58f056..ac855651f8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java @@ -138,7 +138,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Check existing items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { @@ -162,7 +162,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Remove items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java index 16cfa8c45a..e8b24dba20 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java @@ -145,7 +145,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Check existing items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { @@ -178,7 +178,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Remove items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { diff --git a/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java b/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java index 16cfa8c45a..e8b24dba20 100644 --- a/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java +++ b/L2J_Mobius_Essence_6.0_BattleChronicle/java/org/l2jmobius/gameserver/network/clientpackets/limitshop/RequestPurchaseLimitShopItemBuy.java @@ -145,7 +145,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Check existing items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) { @@ -178,7 +178,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket } // Remove items. - for (int i = 0; i < 3; i++) + for (int i = 0; i < _product.getIngredientIds().length; i++) { if (_product.getIngredientIds()[i] == 0) {