RequestPurchaseLimitShopItemBuy should consider default ingredient length.
This commit is contained in:
parent
e36fdb2182
commit
014863dd5f
@ -138,7 +138,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check existing items.
|
// Check existing items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
@ -171,7 +171,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove items.
|
// Remove items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check existing items.
|
// Check existing items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
@ -162,7 +162,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove items.
|
// Remove items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check existing items.
|
// Check existing items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove items.
|
// Remove items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check existing items.
|
// Check existing items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove items.
|
// Remove items.
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < _product.getIngredientIds().length; i++)
|
||||||
{
|
{
|
||||||
if (_product.getIngredientIds()[i] == 0)
|
if (_product.getIngredientIds()[i] == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user