mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-04 14:31:45 +01:00
Resetting player flying speed after changing gamemode (#710)
This commit is contained in:
parent
dab6ec6000
commit
f9367ef4a6
@ -1252,6 +1252,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
this.flying = false;
|
||||
}
|
||||
}
|
||||
// Make sure that the player is in the PLAY state and synchronize their flight speed.
|
||||
if (isActive()) {
|
||||
refreshAbilities();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user