9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 20:39:13 +00:00

fix: player emoting then teleporting glitches out

This commit is contained in:
LoJoSho
2023-04-02 13:34:47 -05:00
parent f6935ce60b
commit 5fb3458a98
2 changed files with 5 additions and 1 deletions

View File

@@ -123,6 +123,9 @@ public class PlayerGameListener implements Listener {
user.spawnBalloon(cosmeticBalloonType);
}, 2);
}
if (user.getUserEmoteManager().isPlayingEmote()) {
user.getUserEmoteManager().stopEmote(UserEmoteManager.StopEmoteReason.TELEPORT);
}
}
@EventHandler

View File

@@ -60,6 +60,7 @@ public class UserEmoteManager {
public enum StopEmoteReason {
SNEAK,
DAMAGE,
CONNECTION
CONNECTION,
TELEPORT
}
}