From ea97dcdb556aee22de68a1e5fb3294b5a9aa8846 Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Sat, 12 Jan 2013 19:17:29 -0500 Subject: [PATCH] Fix missing Spout check. Will switch to Bukkit sounds soon. --- .../nossr50/skills/mining/SuperBreakerEventHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java b/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java index 79c1d2e9c..9873f2874 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/SuperBreakerEventHandler.java @@ -1,6 +1,7 @@ package com.gmail.nossr50.skills.mining; import org.bukkit.Material; +import org.bukkit.Sound; import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; @@ -56,7 +57,9 @@ public class SuperBreakerEventHandler { } protected void playSpoutSound() { - SpoutSounds.playSoundForPlayer(SoundEffect.POP, player, block.getLocation()); + if (mcMMO.spoutEnabled) { + SpoutSounds.playSoundForPlayer(SoundEffect.POP, player, block.getLocation()); + } } /**