mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-1325: Make ItemStack deserialization more robust.
This commit is contained in:
parent
76ffae6d58
commit
f10a7a92f3
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
|||
}
|
||||
|
||||
if (args.containsKey("amount")) {
|
||||
amount = (Integer) args.get("amount");
|
||||
amount = ((Number) args.get("amount")).intValue();
|
||||
}
|
||||
|
||||
ItemStack result = new ItemStack(type, amount, damage);
|
||||
|
|
Loading…
Add table
Reference in a new issue