From e347bc1c9e5d5806900b71c84063671827c3bcc7 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 18 Mar 2015 15:28:57 -0400 Subject: [PATCH] Short data, Fixed #1909 --- .../java/com/gmail/nossr50/config/treasure/TreasureConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java index 9e23ca2da..b20bc911c 100644 --- a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java +++ b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java @@ -186,7 +186,7 @@ public class TreasureConfig extends ConfigLoader { } int amount = config.getInt(type + "." + treasureName + ".Amount"); - short data = (treasureInfo.length == 2) ? Byte.valueOf(treasureInfo[1]) : (short) config.getInt(type + "." + treasureName + ".Data"); + short data = (treasureInfo.length == 2) ? Short.parseShort(treasureInfo[1]) : (short) config.getInt(type + "." + treasureName + ".Data"); if (material == null) { reason.add("Invalid material: " + materialName);