From e106970af9c740f4c059d775eef77762287184d5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 15 Feb 2012 20:40:58 -0600 Subject: [PATCH] [Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777 By: Wesley Wolfe --- paper-api/src/main/java/org/bukkit/inventory/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java index c730db62a2..df51a20e81 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java @@ -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")) {