mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-10 01:11:25 +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;
|
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