From 48fc94222262d198ee66aceaa66591ee94d066eb Mon Sep 17 00:00:00 2001 From: Simon Chuu Date: Tue, 4 Jun 2019 05:15:57 -0400 Subject: [PATCH] Fix phantom not being removed when newly spawned --- src/main/java/com/simonorj/mc/phantomsmp/PhantomListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simonorj/mc/phantomsmp/PhantomListener.java b/src/main/java/com/simonorj/mc/phantomsmp/PhantomListener.java index f713c2b..cab92d3 100644 --- a/src/main/java/com/simonorj/mc/phantomsmp/PhantomListener.java +++ b/src/main/java/com/simonorj/mc/phantomsmp/PhantomListener.java @@ -71,7 +71,8 @@ else if (phantom.getTarget() instanceof Player) if (ignorePlayer(p, newlySpawned)) { if (e != null) e.setCancelled(true); - else if (newlySpawned || !p.hasPermission(IGNORE_PERM) && plugin.removeTargetingRested && phantom.getCustomName() == null) + + if (newlySpawned || !p.hasPermission(IGNORE_PERM) && plugin.removeTargetingRested && phantom.getCustomName() == null) phantom.remove(); else phantom.setTarget(null);