From a3a518bf1955cc9d3d031af97eee8888da3f567c Mon Sep 17 00:00:00 2001 From: Jsinco Date: Thu, 19 Sep 2024 19:18:29 -0400 Subject: [PATCH] wrap lore in arraylist init --- src/main/java/com/dre/brewery/lore/BrewLore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dre/brewery/lore/BrewLore.java b/src/main/java/com/dre/brewery/lore/BrewLore.java index 41c7f2d3..e623591b 100644 --- a/src/main/java/com/dre/brewery/lore/BrewLore.java +++ b/src/main/java/com/dre/brewery/lore/BrewLore.java @@ -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<>(); }