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:
@@ -123,6 +123,9 @@ public class PlayerGameListener implements Listener {
|
||||
user.spawnBalloon(cosmeticBalloonType);
|
||||
}, 2);
|
||||
}
|
||||
if (user.getUserEmoteManager().isPlayingEmote()) {
|
||||
user.getUserEmoteManager().stopEmote(UserEmoteManager.StopEmoteReason.TELEPORT);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
||||
@@ -60,6 +60,7 @@ public class UserEmoteManager {
|
||||
public enum StopEmoteReason {
|
||||
SNEAK,
|
||||
DAMAGE,
|
||||
CONNECTION
|
||||
CONNECTION,
|
||||
TELEPORT
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user