1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-01 09:16:24 +02:00

Short data, Fixed

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

@ -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);