mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false)
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
7d54b49e13
commit
c92c764f2c
@ -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…
Reference in New Issue
Block a user