Skip to content

Commit

Permalink
Allow formerly weapon-only stats to be added to non-weapons (fixes #236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Travja committed Oct 22, 2024
1 parent bb6728b commit 26cb19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void generate(@NotNull ItemStack item, int itemLevel) {
List<String> lore = meta.getLore();
if (lore == null) return;

if (!ItemUtils.isWeapon(item) || this.attributes.isEmpty()) {
if (this.attributes.isEmpty()) {
LoreUT.replacePlaceholder(item, this.placeholder, null);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ public Class<String> getParameterClass() {
return String.class;
}

public static enum Type {
public enum Type {
ONE,
TWO,
;
}

@Override
Expand Down

0 comments on commit 26cb19c

Please sign in to comment.