Fixed NPE With Auto Leave Flight Task

This commit is contained in:
Driftay 2019-08-18 09:15:30 -04:00
parent f497f96b94
commit 49ec990c2f
1 changed files with 1 additions and 0 deletions

View File

@ -913,6 +913,7 @@ public abstract class MemoryFPlayer implements FPlayer {
public void setFFlying(boolean fly, boolean damage) {
Player player = getPlayer();
if(player == null) return;
if (player != null) {
player.setAllowFlight(fly);
player.setFlying(fly);