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