diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/TradeList.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/TradeList.java index 33de817ea2..d201681a7e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/TradeList.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/TradeList.java @@ -351,14 +351,13 @@ public class TradeList return null; } - if (count > item.getCount()) + if ((count <= 0) || (count > item.getCount())) { return null; } if (!item.isStackable() && (count > 1)) { - LOGGER.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!"); return null; } diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/TradeList.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/TradeList.java index 5c3806db95..c4deca39c5 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/TradeList.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/TradeList.java @@ -363,14 +363,13 @@ public class TradeList return null; } - if (count > item.getCount()) + if ((count <= 0) || (count > item.getCount())) { return null; } if (!item.isStackable() && (count > 1)) { - LOGGER.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!"); return null; }