9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

feat: equipping emote stops emote

This commit is contained in:
LoJoSho
2023-06-13 11:59:16 -05:00
parent 4e2291d16f
commit 1e2db05e45
2 changed files with 3 additions and 2 deletions

View File

@@ -144,7 +144,7 @@ public class CosmeticUser {
despawnBalloon();
}
if (slot == CosmeticSlot.EMOTE) {
if (getUserEmoteManager().isPlayingEmote()) getUserEmoteManager().stopEmote(UserEmoteManager.StopEmoteReason.UNEQUIP);
}
colors.remove(slot);
playerCosmetics.remove(slot);

View File

@@ -88,6 +88,7 @@ public class UserEmoteManager {
SNEAK,
DAMAGE,
CONNECTION,
TELEPORT
TELEPORT,
UNEQUIP
}
}