Fixed item stack creation, so splash potions are created properly.

This commit is contained in:
Garbage Mule 2011-12-03 20:48:04 +01:00
parent f7e8cc2a83
commit 7e30c42510
3 changed files with 4 additions and 5 deletions

Binary file not shown.

View File

@ -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:

View File

@ -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)