From a566dd2075e9230c4abc69cf75d7c9b41aba1bcc Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 9 Feb 2021 20:44:05 +0200 Subject: [PATCH] Add an audio confirmation when an ability fails to activate/doesn't fulfil its requirements to activate --- .../com/minelittlepony/unicopia/ability/AbilityDispatcher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java b/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java index 58f883c1..398adf2b 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java @@ -18,6 +18,7 @@ import com.minelittlepony.unicopia.network.Channel; import com.minelittlepony.unicopia.util.NbtSerialisable; import net.minecraft.nbt.CompoundTag; +import net.minecraft.sound.SoundEvents; import net.minecraft.util.Identifier; import net.minecraft.util.Tickable; @@ -195,6 +196,7 @@ public class AbilityDispatcher implements Tickable, NbtSerialisable { if (data != null) { Channel.CLIENT_PLAYER_ABILITY.send(new MsgPlayerAbility<>(ability, data)); } else { + player.getEntity().playSound(SoundEvents.BLOCK_NOTE_BLOCK_DIDGERIDOO, 1, 1); setCooldown(0); } }