Skip to content

Commit

Permalink
fix logic error in HighlightAllMobsEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckscor3 committed Feb 21, 2023
1 parent 7834037 commit 140c658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void tick() {
worlds.add(player.getWorld());
for(var world : worlds)
for(var entity : world.iterateEntities())
if(entity instanceof MobEntity && entity.getType().isIn(EntropyTags.DO_NOT_HIGHLIGHT))
if(entity instanceof MobEntity && !entity.getType().isIn(EntropyTags.DO_NOT_HIGHLIGHT))
((MobEntity)entity).addStatusEffect(new StatusEffectInstance(StatusEffects.GLOWING, 2));
super.tick();
}
Expand Down

0 comments on commit 140c658

Please sign in to comment.