From 7735f35e04c8c3f7e8f5a582858d574112a1523a Mon Sep 17 00:00:00 2001 From: Riley Park Date: Fri, 22 Apr 2016 19:02:57 -0700 Subject: [PATCH] Fix wrong variable being checked. Fixes #233 --- Spigot-Server-Patches/Only-refresh-abilities-if-needed.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Only-refresh-abilities-if-needed.patch b/Spigot-Server-Patches/Only-refresh-abilities-if-needed.patch index 3cf8fe147..050c46b97 100644 --- a/Spigot-Server-Patches/Only-refresh-abilities-if-needed.patch +++ b/Spigot-Server-Patches/Only-refresh-abilities-if-needed.patch @@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 @Override public void setFlying(boolean value) { -+ boolean needsUpdate = getHandle().abilities.canFly != value; // Paper - Only refresh abilities if needed ++ boolean needsUpdate = getHandle().abilities.isFlying != value; // Paper - Only refresh abilities if needed if (!getAllowFlight() && value) { throw new IllegalArgumentException("Cannot make player fly if getAllowFlight() is false"); }