improved sound output of coin bomb

This commit is contained in:
Chiss 2014-10-13 14:13:57 +11:00
parent e41b10ccb8
commit 25fbe24d20

View File

@ -74,6 +74,8 @@ public class ItemCoinBomb extends ItemGadget
{
if (Math.random() > 0.80)
UtilFirework.playFirework(item.getLocation(), FireworkEffect.builder().flicker(false).withColor(Color.YELLOW).with(Type.BURST).trail(false).build());
else
item.getWorld().playSound(item.getLocation(), Sound.FIREWORK_LAUNCH, 1f, 1f);
Item coin = item.getWorld().dropItem(item.getLocation().add(0, 1, 0), new ItemStack(Material.getMaterial(175)));