13
0
geforkt von Mirrors/Paper

Fixed incorrect assigning to isFlying when toggling setAllowedFlight(false)

By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2012-03-23 14:41:53 +00:00
Ursprung 7d54b49e13
Commit c92c764f2c

Datei anzeigen

@ -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;