diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/inventory/ItemStack.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java index c730db62..df51a20e 100644 --- a/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/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")) { |