From c92c764f2c74938411b422034375b0cf4d759e96 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 23 Mar 2012 14:41:53 +0000 Subject: [PATCH] Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false) By: Nathan Adams --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 6898c063c7..c64107261b 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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;