Skip to content

Commit

Permalink
Autonametag patch. (MeteorDevelopment#4278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Iron-Cheems authored and tyrannus00 committed Apr 25, 2024
1 parent de7eee8 commit 7e44c71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e44c71

Please sign in to comment.