Skip to content

Commit

Permalink
Fix item-hints hint ignored names
Browse files Browse the repository at this point in the history
  • Loading branch information
Travja committed Feb 29, 2024
1 parent 5f05f69 commit 45460e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ public boolean isHint(@NotNull Item item) {

private boolean isAffected(@NotNull Item item, boolean checkGlow) {
String name = item.getCustomName();
if (name == null) name = ItemUT.getItemName(item.getItemStack());

if (name != null) {
for (String blackText : (checkGlow ? this.glowIgnoredNames : this.hintIgnoredNames)) {
if (name.contains(blackText)) {
Expand Down

0 comments on commit 45460e5

Please sign in to comment.