mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-02 13:41:20 +01:00
Fixed item stack creation, so splash potions are created properly.
This commit is contained in:
parent
f7e8cc2a83
commit
7e30c42510
BIN
MobArena.jar
BIN
MobArena.jar
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)
|
||||
|
Loading…
Reference in New Issue
Block a user