From c9356f9ef5e0c16c968e11b22cd4766742f9e433 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 1 Mar 2016 12:21:00 -0500 Subject: [PATCH] Update for 1.9 Sound enum changes. Now only compatible with 1.9+ --- pom.xml | 3 +-- .../java/com/gmail/nossr50/skills/repair/RepairManager.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index a46578eb5..5fb04eb91 100755 --- a/pom.xml +++ b/pom.xml @@ -135,8 +135,7 @@ org.bukkit bukkit - 1.8-R0.1-SNAPSHOT - jar + 1.9-R0.1-SNAPSHOT provided diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java index 18b5b4f98..23fb2107c 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java @@ -51,7 +51,7 @@ public class RepairManager extends SkillManager { } if (Config.getInstance().getRepairAnvilPlaceSoundsEnabled()) { - player.playSound(player.getLocation(), Sound.ANVIL_LAND, Misc.ANVIL_USE_VOLUME, Misc.ANVIL_USE_PITCH); + player.playSound(player.getLocation(), Sound.BLOCK_ANVIL_LAND, Misc.ANVIL_USE_VOLUME, Misc.ANVIL_USE_PITCH); } togglePlacedAnvil(); @@ -145,7 +145,7 @@ public class RepairManager extends SkillManager { // BWONG BWONG BWONG if (Config.getInstance().getRepairAnvilUseSoundsEnabled()) { - player.playSound(player.getLocation(), Sound.ANVIL_USE, Misc.ANVIL_USE_VOLUME, Misc.ANVIL_USE_PITCH); + player.playSound(player.getLocation(), Sound.BLOCK_ANVIL_USE, Misc.ANVIL_USE_VOLUME, Misc.ANVIL_USE_PITCH); } // Repair the item!