Fix phantom not being removed when newly spawned
This commit is contained in:
parent
1014aeb79a
commit
48fc942222
|
@ -71,7 +71,8 @@ public class PhantomListener implements Listener {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue