summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorWesley Wolfe <weswolf@aol.com>2012-02-15 20:40:58 -0600
committerEvilSeph <evilseph@gmail.com>2012-02-19 01:22:07 -0500
commit0e4dc578d0585a6ce1d132e2a1fd5bc101adb515 (patch)
treed5790111512646ed880f7211559fbee0c4f61135 /src/main/java
parent332e8cad5da2915d5369946237d28f0d6a83acfe (diff)
downloadbukkit-0e4dc578d0585a6ce1d132e2a1fd5bc101adb515.tar
bukkit-0e4dc578d0585a6ce1d132e2a1fd5bc101adb515.tar.gz
bukkit-0e4dc578d0585a6ce1d132e2a1fd5bc101adb515.tar.lz
bukkit-0e4dc578d0585a6ce1d132e2a1fd5bc101adb515.tar.xz
bukkit-0e4dc578d0585a6ce1d132e2a1fd5bc101adb515.zip
[Bleeding] Fixed class cast in ItemStack deserialization. Fixes BUKKIT-777
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/inventory/ItemStack.java2
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")) {