Bukkit Devs renamed a method and didn't leave a mirror in the old name.

This commit is contained in:
Glitchfinder
2013-01-13 17:56:05 -08:00
parent 664239c567
commit eb2c552316
3 changed files with 22 additions and 6 deletions

View File

@ -244,11 +244,14 @@ public class Mining {
case LAPIS_ORE:
if (config.getLapisDoubleDropsEnabled()) {
try {
item = (new MaterialData(Material.INK_SACK, DyeColor.BLUE.getDyeData())).toItemStack(1);
item = (new MaterialData(Material.INK_SACK, DyeColor.BLUE.getData())).toItemStack(1);
}
catch(Exception e) {
item = (new MaterialData(Material.INK_SACK, (byte) 4)).toItemStack(1);
}
catch(NoSuchMethodError e) {
item = (new MaterialData(Material.INK_SACK, (byte) 4)).toItemStack(1);
}
Misc.dropItems(location, item, 4);
Misc.randomDropItems(location, item, 50, 4);