Skip to content

Commit

Permalink
[Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKI…
Browse files Browse the repository at this point in the history
…T-777
  • Loading branch information
Wolvereness authored and EvilSeph committed Feb 19, 2012
1 parent a294e9c commit 2131f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/bukkit/inventory/ItemStack.java
Expand Up @@ -360,7 +360,7 @@ public static ItemStack deserialize(Map<String, Object> args) {
int amount = 1;

if (args.containsKey("damage")) {
damage = (Short) args.get("damage");
damage = ((Number) args.get("damage")).shortValue();
}

if (args.containsKey("amount")) {
Expand Down

0 comments on commit 2131f69

Please sign in to comment.