Fixed item stack creation, so splash potions are created properly.
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
name: MobArena
|
||||
main: com.garbagemule.MobArena.MobArena
|
||||
version: 0.94.4.1
|
||||
version: 0.94.4.2
|
||||
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
||||
commands:
|
||||
ma:
|
||||
|
||||
@@ -602,13 +602,12 @@ public class MAUtils
|
||||
DyeColor dye = (data.matches("[0-9]+")) ?
|
||||
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, (short) Math.abs(offset - dye.getData()));
|
||||
}
|
||||
else
|
||||
{
|
||||
return new ItemStack(material, amount, (byte) Integer.parseInt(data));
|
||||
return new ItemStack(material, amount, (short) Integer.parseInt(data));
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user