Short data, Fixed #1909

This commit is contained in:
t00thpick1 2015-03-18 15:28:57 -04:00
parent 42116f4467
commit e347bc1c9e

View File

@ -186,7 +186,7 @@ public class TreasureConfig extends ConfigLoader {
} }
int amount = config.getInt(type + "." + treasureName + ".Amount"); 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) { if (material == null) {
reason.add("Invalid material: " + materialName); reason.add("Invalid material: " + materialName);