mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-27 03:27:35 +01:00
Fixed subtypes
This commit is contained in:
parent
620ee884cb
commit
337586d01e
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user