From 395e2437303f4ef9811187f6f4b4f74598ead4da Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Sun, 13 Jan 2013 18:23:11 -0800 Subject: [PATCH] Converting calls again. --- .../java/com/gmail/nossr50/skills/gathering/Fishing.java | 2 +- .../java/com/gmail/nossr50/skills/gathering/Herbalism.java | 6 +++--- src/main/java/com/gmail/nossr50/skills/mining/Mining.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java index 0466508ae..e733286f0 100755 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java @@ -392,7 +392,7 @@ public class Fishing { case SQUID: ItemStack item; 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) { item = (new MaterialData(Material.INK_SACK, (byte) 0)).toItemStack(1); diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java index 940d08572..206e5b82c 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java @@ -266,7 +266,7 @@ public class Herbalism { else { if (mat == Material.COCOA) { try { - is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()); + is = new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()); } catch (Exception e) { is = new ItemStack(Material.INK_SACK, 1, (short) 3); @@ -468,8 +468,8 @@ public class Herbalism { break; case COCOA: try { - Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData()), 3); - inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getData())); + Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData()), 3); + inventory.removeItem(new ItemStack(Material.INK_SACK, 1, DyeColor.BROWN.getDyeData())); } catch(Exception e) { Misc.dropItems(location, new ItemStack(Material.INK_SACK, 1, (short) 3), 3); diff --git a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java index c6960b597..848ac1409 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/Mining.java @@ -244,7 +244,7 @@ public class Mining { case LAPIS_ORE: if (config.getLapisDoubleDropsEnabled()) { 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) { item = (new MaterialData(Material.INK_SACK, (byte) 4)).toItemStack(1);