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

View File

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