Skip to content

Commit

Permalink
Fix phantom not being removed when newly spawned
Browse files Browse the repository at this point in the history
  • Loading branch information
chuushi committed Jun 4, 2019
1 parent 1014aeb commit 48fc942
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48fc942

Please sign in to comment.