mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false)
This commit is contained in:
parent
6ef9500410
commit
942c1c6a3e
1 changed files with 1 additions and 1 deletions
|
@ -825,7 +825,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
|
|
||||||
public void setAllowFlight(boolean value) {
|
public void setAllowFlight(boolean value) {
|
||||||
if (isFlying() && !value) {
|
if (isFlying() && !value) {
|
||||||
getHandle().abilities.canFly = false;
|
getHandle().abilities.isFlying = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getHandle().abilities.canFly = value;
|
getHandle().abilities.canFly = value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue