mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Converting calls again.
This commit is contained in:
parent
eb2c552316
commit
395e243730
@ -392,7 +392,7 @@ public class Fishing {
|
|||||||
case SQUID:
|
case SQUID:
|
||||||
ItemStack item;
|
ItemStack item;
|
||||||
try {
|
try {
|
||||||
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getData())).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, DyeColor.BLACK.getDyeData())).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);
|
||||||
|
@ -266,7 +266,7 @@ public class Herbalism {
|
|||||||
else {
|
else {
|
||||||
if (mat == Material.COCOA) {
|
if (mat == Material.COCOA) {
|
||||||
try {
|
try {
|
||||||
is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData());
|
is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData());
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||||
@ -468,8 +468,8 @@ public class Herbalism {
|
|||||||
break;
|
break;
|
||||||
case COCOA:
|
case COCOA:
|
||||||
try {
|
try {
|
||||||
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()), 3);
|
Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 3);
|
||||||
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()));
|
inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()));
|
||||||
}
|
}
|
||||||
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);
|
||||||
|
@ -244,7 +244,7 @@ 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.getData())).toItemStack(1);
|
item = (new MaterialData(Material.INK_SACK, DyeColor.BLUE.getDyeData())).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);
|
||||||
|
Loading…
Reference in New Issue
Block a user