13
0
geforkt von Mirrors/Paper

Fix wrong variable being checked. Fixes #233

Dieser Commit ist enthalten in:
Riley Park 2016-04-22 19:02:57 -07:00
Ursprung 088c935ff4
Commit 7735f35e04

Datei anzeigen

@ -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");
}