Fixed sword degradation problem

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

Binary file not shown.

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);
}