mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 04:25:21 +01:00
Fixed sword degradation problem
This commit is contained in:
parent
eadcaa682b
commit
9c0f442755
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -110,14 +110,14 @@ public class MAUtils
|
|||||||
{
|
{
|
||||||
id = Integer.parseInt(item[0]);
|
id = Integer.parseInt(item[0]);
|
||||||
stack = new ItemStack(id, amount);
|
stack = new ItemStack(id, amount);
|
||||||
if (!reward && SWORDS_ID.contains(id))
|
if (!reward && SWORDS_TYPE.contains(stack.getType()))
|
||||||
stack.setDurability((short)-3276);
|
stack.setDurability((short)-3276);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
stack = makeItemStack(item[0], amount);
|
stack = makeItemStack(item[0], amount);
|
||||||
if (stack == null) continue;
|
if (stack == null) continue;
|
||||||
if (!reward && SWORDS_ID.contains(stack.getTypeId()))
|
if (!reward && SWORDS_TYPE.contains(stack.getType()))
|
||||||
stack.setDurability((short)-3276);
|
stack.setDurability((short)-3276);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user