Browse Source

Fix for multisell

GodKratos 16 years ago
parent
commit
f1da83c55f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      L2_GameServer/java/net/sf/l2j/gameserver/model/L2Multisell.java

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/L2Multisell.java

@@ -710,7 +710,7 @@ public class L2Multisell
 				Node attribute;
 				
 				int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());
-				long count = Integer.parseInt(n.getAttributes().getNamedItem("count").getNodeValue());
+				long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());
 				boolean isTaxIngredient = false, mantainIngredient = false;
 				
 				attribute = n.getAttributes().getNamedItem("isTaxIngredient");
@@ -729,7 +729,7 @@ public class L2Multisell
 			else if ("production".equalsIgnoreCase(n.getNodeName()))
 			{
 				int id = Integer.parseInt(n.getAttributes().getNamedItem("id").getNodeValue());
-				long count = Integer.parseInt(n.getAttributes().getNamedItem("count").getNodeValue());
+				long count = Long.parseLong(n.getAttributes().getNamedItem("count").getNodeValue());
 				
 				MultiSellIngredient e = new MultiSellIngredient(id, count, false, false);
 				entry.addProduct(e);