mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-28 11:29:18 +00:00
fix: server-side teleporation causing players to be stuck in wardrobe area
This commit is contained in:
@@ -151,6 +151,9 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
|
||||
if (user.getUserEmoteManager().isPlayingEmote()) {
|
||||
player.setInvisible(false);
|
||||
}
|
||||
if (user.isInWardrobe()) {
|
||||
user.leaveWardrobe(true);
|
||||
}
|
||||
Database.save(user);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user