13
0
geforkt von Mirrors/Paper

[Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777

By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-02-15 20:40:58 -06:00
Ursprung b58168b112
Commit e106970af9

Datei anzeigen

@ -360,7 +360,7 @@ public class ItemStack implements ConfigurationSerializable {
int amount = 1;
if (args.containsKey("damage")) {
damage = (Short) args.get("damage");
damage = ((Number) args.get("damage")).shortValue();
}
if (args.containsKey("amount")) {