mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 01:03:44 +01:00 
			
		
		
		
	Fix missing Spout check. Will switch to Bukkit sounds soon.
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
| package com.gmail.nossr50.skills.mining; | package com.gmail.nossr50.skills.mining; | ||||||
|  |  | ||||||
| import org.bukkit.Material; | import org.bukkit.Material; | ||||||
|  | import org.bukkit.Sound; | ||||||
| import org.bukkit.block.Block; | import org.bukkit.block.Block; | ||||||
| import org.bukkit.entity.Player; | import org.bukkit.entity.Player; | ||||||
| import org.bukkit.inventory.ItemStack; | import org.bukkit.inventory.ItemStack; | ||||||
| @@ -56,7 +57,9 @@ public class SuperBreakerEventHandler { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     protected void playSpoutSound() { |     protected void playSpoutSound() { | ||||||
|         SpoutSounds.playSoundForPlayer(SoundEffect.POP, player, block.getLocation()); |         if (mcMMO.spoutEnabled) { | ||||||
|  |             SpoutSounds.playSoundForPlayer(SoundEffect.POP, player, block.getLocation()); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 gmcferrin
					gmcferrin