geforkt von Mirrors/Paper
Merge pull request #234 from kashike/this-is-not-the-fly-you-are-looking-for
Fix wrong variable being checked. Fixes #233
Dieser Commit ist enthalten in:
Commit
4f702e43e9
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setFlying(boolean value) {
|
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) {
|
if (!getAllowFlight() && value) {
|
||||||
throw new IllegalArgumentException("Cannot make player fly if getAllowFlight() is false");
|
throw new IllegalArgumentException("Cannot make player fly if getAllowFlight() is false");
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren