diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/world/AutoNametag.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/world/AutoNametag.java index d9e92c68ef..3e1ea5576a 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/world/AutoNametag.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/world/AutoNametag.java @@ -86,9 +86,9 @@ private void onTick(TickEvent.Pre event) { if (!PlayerUtils.isWithin(entity, range.get())) return false; if (!entities.get().contains(entity.getType())) return false; if (entity.hasCustomName()) { - return renametag.get() && entity.getCustomName() != mc.player.getInventory().getStack(findNametag.slot()).getName(); + return renametag.get() && !entity.getCustomName().equals(mc.player.getInventory().getStack(findNametag.slot()).getName()); } - return false; + return true; }, priority.get()); if (target == null) return;