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
|
name: MobArena
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.94.4.1
|
version: 0.94.4.2
|
||||||
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
|||||||
@@ -602,13 +602,12 @@ public class MAUtils
|
|||||||
DyeColor dye = (data.matches("[0-9]+")) ?
|
DyeColor dye = (data.matches("[0-9]+")) ?
|
||||||
DyeColor.getByData((byte) Math.abs(offset - Integer.parseInt(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, (short) Math.abs(offset - dye.getData()));
|
||||||
return new ItemStack(material, amount, (byte) Math.abs(offset - dye.getData()));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return new ItemStack(material, amount, (byte) Integer.parseInt(data));
|
return new ItemStack(material, amount, (short) Integer.parseInt(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user