No longer need to specify amount if creating ItemStack of 1 item.

This commit is contained in:
GJ
2012-03-16 13:45:30 -04:00
parent be4abefd55
commit ed65842e3d
6 changed files with 58 additions and 58 deletions

View File

@ -117,7 +117,7 @@ public class LoadTreasures {
if(dropChance < 0) reason.add("Invalid Drop_Chance: " + dropChance);
if(dropLevel < 0) reason.add("Invalid Drop_Level: " + dropLevel);
ItemStack item = new ItemStack(id, amount, (byte) 0, (byte) data);
ItemStack item = new ItemStack(id, amount, (short) 0, (byte) data);
if(readBoolean("Treasures." + treasureName + ".Drops_From.Fishing", false)) {
if(config.getConfigurationSection("Treasures." + treasureName + ".Drops_From").getKeys(false).size() != 1)