mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
[Bleeding] Fix deserialization for unsafe enchantments. Fixes BUKKIT-793
This commit is contained in:
parent
697e67f3e6
commit
e003bc7095
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
|||
Enchantment enchantment = Enchantment.getByName(entry.getKey().toString());
|
||||
|
||||
if ((enchantment != null) && (entry.getValue() instanceof Integer)) {
|
||||
result.addEnchantment(enchantment, (Integer) entry.getValue());
|
||||
result.addUnsafeEnchantment(enchantment, (Integer) entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue