From 49ec990c2fa0fe1f26a3e05597f29531550e5931 Mon Sep 17 00:00:00 2001 From: Driftay Date: Sun, 18 Aug 2019 09:15:30 -0400 Subject: [PATCH] Fixed NPE With Auto Leave Flight Task --- .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index 968d0eb4..a24e9676 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -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);