Fixed NPE With Auto Leave Flight Task
This commit is contained in:
parent
f497f96b94
commit
49ec990c2f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user