Fixed sword degradation problem

This commit is contained in:
Garbage Mule committed 2011-06-05 08:21:28 +02:00
1 parent eadcaa682b
commit 9c0f442755
2 files changed
+2 -2

No files matched your search

+2 -2
View File
@@ -110,14 +110,14 @@ public class MAUtils
{
id = Integer.parseInt(item[0]);
stack = new ItemStack(id, amount);
if (!reward && SWORDS_ID.contains(id))
if (!reward && SWORDS_TYPE.contains(stack.getType()))
stack.setDurability((short)-3276);
}
else
{
stack = makeItemStack(item[0], amount);
if (stack == null) continue;
if (!reward && SWORDS_ID.contains(stack.getTypeId()))
if (!reward && SWORDS_TYPE.contains(stack.getType()))
stack.setDurability((short)-3276);
}