瀏覽代碼

Fix for multisell

GodKratos 16 年之前
父節點
當前提交
f1da83c55f
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);