Skip to content
Permalink
Browse files

Drop spectator mode targets, for #233

  • Loading branch information...
mcmonkey4eva committed Mar 3, 2018
1 parent dfecefa commit 7af705dbeb054c518e54d648688752b52b8af584
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
@@ -1784,7 +1784,7 @@ private void updateTargets() {
currentTargets.remove(uuid);
continue;
}
if (e instanceof Player && ((Player) e).getGameMode() == GameMode.CREATIVE) {
if (e instanceof Player && (((Player) e).getGameMode() == GameMode.CREATIVE || ((Player) e).getGameMode() == GameMode.SPECTATOR)) {
currentTargets.remove(uuid);
continue;
}

0 comments on commit 7af705d

Please sign in to comment.
You can’t perform that action at this time.