Fixing issues caused by the patch to deprecated ItemStack changes.

This commit is contained in:
Glitchfinder
2012-12-29 12:59:18 -08:00
parent cafed2d98c
commit aa70c82824
8 changed files with 29 additions and 55 deletions

View File

@ -126,8 +126,7 @@ public class TreasuresConfig extends ConfigLoader{
* Drops From & Max Level
*/
ItemStack item = new ItemStack(id, amount, (short) 0);
item.setData(new MaterialData(id, (byte) data));
ItemStack item = (new MaterialData(id, (byte) data)).toItemStack(amount);
if (config.getBoolean("Treasures." + treasureName + ".Drops_From.Fishing", false)) {
if (config.getConfigurationSection("Treasures." + treasureName + ".Drops_From").getKeys(false).size() != 1) {