diff --git a/MobArena.jar b/MobArena.jar index 8980e6b..7bcd069 100644 Binary files a/MobArena.jar and b/MobArena.jar differ diff --git a/src/com/garbagemule/MobArena/MAUtils.java b/src/com/garbagemule/MobArena/MAUtils.java index c9ec177..a268c82 100644 --- a/src/com/garbagemule/MobArena/MAUtils.java +++ b/src/com/garbagemule/MobArena/MAUtils.java @@ -536,10 +536,11 @@ public class MAUtils offset = 15; DyeColor dye = (data.matches("[0-9]+")) ? - DyeColor.getByData(Byte.parseByte(data)) : + DyeColor.getByData((byte) Math.abs(offset - Integer.parseInt(data))) : DyeColor.valueOf(data.toUpperCase()); - return new ItemStack(material, amount, (byte) Math.abs((offset - dye.getData()))); + //return new ItemStack(material, amount, (byte) Math.abs((offset - dye.getData()))); + return new ItemStack(material, amount, (byte) Math.abs(offset - dye.getData())); } catch (Exception e) {