mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false)
This commit is contained in:
@@ -825,7 +825,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
|
||||
public void setAllowFlight(boolean value) {
|
||||
if (isFlying() && !value) {
|
||||
getHandle().abilities.canFly = false;
|
||||
getHandle().abilities.isFlying = false;
|
||||
}
|
||||
|
||||
getHandle().abilities.canFly = value;
|
||||
|
Reference in New Issue
Block a user