geforkt von Mirrors/Paper
[Bleeding] Fix deserialization for unsafe enchantments. Fixes BUKKIT-793
By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
7046df03bc
Commit
80e59821f3
@ -398,7 +398,7 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
|||||||
Enchantment enchantment = Enchantment.getByName(entry.getKey().toString());
|
Enchantment enchantment = Enchantment.getByName(entry.getKey().toString());
|
||||||
|
|
||||||
if ((enchantment != null) && (entry.getValue() instanceof Integer)) {
|
if ((enchantment != null) && (entry.getValue() instanceof Integer)) {
|
||||||
result.addEnchantment(enchantment, (Integer) entry.getValue());
|
result.addUnsafeEnchantment(enchantment, (Integer) entry.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren