mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
[Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777
This commit is contained in:
parent
332e8cad5d
commit
0e4dc578d0
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue