Skip to content

Commit

Permalink
wrap lore in arraylist init
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Sep 19, 2024
1 parent aa4c064 commit a3a518b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/dre/brewery/lore/BrewLore.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public BrewLore(Brew brew, PotionMeta meta) {
this.brew = brew;
this.meta = meta;
if (meta.hasLore()) {
lore = meta.getLore();
lore = new ArrayList<>(meta.getLore()); // not null
} else {
lore = new ArrayList<>();
}
Expand Down

0 comments on commit a3a518b

Please sign in to comment.