mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Bukkit Devs renamed a method and didn't leave a mirror in the old name.
This commit is contained in:
parent
664239c567
commit
eb2c552316
@ -392,10 +392,13 @@ public class Fishing {
|
|||||||
case SQUID:
|
case SQUID:
|
||||||
ItemStack item;
|
ItemStack item;
|
||||||
try {
|
try {
|
||||||
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData())).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getData())).toItemStack(1);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1);
|
||||||
|
}
|
||||||
|
catch(NoSuchMethodError e) {
|
||||||
|
item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Misc.dropItem(location, item);
|
Misc.dropItem(location, item);
|
||||||
|
@ -266,11 +266,14 @@ public class Herbalism {
|
|||||||
else {
|
else {
|
||||||
if (mat == Material.COCOA) {
|
if (mat == Material.COCOA) {
|
||||||
try {
|
try {
|
||||||
is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData());
|
is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData());
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||||
}
|
}
|
||||||
|
catch (NoSuchMethodError e) {
|
||||||
|
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (mat == Material.CARROT) {
|
else if (mat == Material.CARROT) {
|
||||||
is = new ItemStack(Material.CARROT_ITEM);
|
is = new ItemStack(Material.CARROT_ITEM);
|
||||||
@ -423,11 +426,14 @@ public class Herbalism {
|
|||||||
break;
|
break;
|
||||||
case COCOA:
|
case COCOA:
|
||||||
try {
|
try {
|
||||||
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 1);
|
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()), 1);
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, (short) 3), 1);
|
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, (short) 3), 1);
|
||||||
}
|
}
|
||||||
|
catch(NoSuchMethodError e) {
|
||||||
|
hasSeeds = inventory.containsAtLeast(new ItemStack(Material.INK_SACK, 1, (short) 3), 1);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CARROT:
|
case CARROT:
|
||||||
hasSeeds = inventory.contains(Material.CARROT_ITEM);
|
hasSeeds = inventory.contains(Material.CARROT_ITEM);
|
||||||
@ -462,13 +468,17 @@ public class Herbalism {
|
|||||||
break;
|
break;
|
||||||
case COCOA:
|
case COCOA:
|
||||||
try {
|
try {
|
||||||
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 3);
|
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()), 3);
|
||||||
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()));
|
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()));
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, (short) 3), 3);
|
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, (short) 3), 3);
|
||||||
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, (short) 3));
|
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, (short) 3));
|
||||||
}
|
}
|
||||||
|
catch(NoSuchMethodError e) {
|
||||||
|
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, (short) 3), 3);
|
||||||
|
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, (short) 3));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case CARROT:
|
case CARROT:
|
||||||
Misc.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
Misc.dropItem(location, new ItemStack(Material.CARROT_ITEM));
|
||||||
|
@ -244,11 +244,14 @@ public class Mining {
|
|||||||
case LAPIS_ORE:
|
case LAPIS_ORE:
|
||||||
if (config.getLapisDoubleDropsEnabled()) {
|
if (config.getLapisDoubleDropsEnabled()) {
|
||||||
try {
|
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) {
|
catch(Exception e) {
|
||||||
item = (new MaterialData(Material.INK_SACK, (byte) 4)).toItemStack(1);
|
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.dropItems(location, item, 4);
|
||||||
Misc.randomDropItems(location, item, 50, 4);
|
Misc.randomDropItems(location, item, 50, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user