Fixed subtypes

This commit is contained in:
Garbage Mule 2011-07-10 23:12:11 +02:00
parent 620ee884cb
commit 337586d01e
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -536,10 +536,11 @@ public class MAUtils
offset = 15; offset = 15;
DyeColor dye = (data.matches("[0-9]+")) ? DyeColor dye = (data.matches("[0-9]+")) ?
DyeColor.getByData(Byte.parseByte(data)) : DyeColor.getByData((byte) Math.abs(offset - Integer.parseInt(data))) :
DyeColor.valueOf(data.toUpperCase()); 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) catch (Exception e)
{ {