13
0
geforkt von Mirrors/Paper

[Bleeding] Fix deserialization for unsafe enchantments. Fixes BUKKIT-793

By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-02-23 02:23:05 -06:00
Ursprung 7046df03bc
Commit 80e59821f3

Datei anzeigen

@ -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());
}
}
}