mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
[Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -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")) {
|
||||
|
Reference in New Issue
Block a user