File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
invui/src/main/java/xyz/xenondevs/invui/item Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public final class ItemBuilder implements ItemProvider {
5454 private @ Nullable Map <String , TagResolver > placeholders ;
5555 private @ Nullable List <Function <? super ItemStack , ? extends ItemStack >> modifiers ;
5656
57- private final Map <Locale , ItemStack > buildCache = new HashMap <>();
57+ private Map <Locale , ItemStack > buildCache = new HashMap <>();
5858
5959 /**
6060 * Constructs a new {@link ItemBuilder} based on the given {@link Material}.
@@ -1260,6 +1260,7 @@ public ItemBuilder clone() {
12601260 try {
12611261 ItemBuilder clone = ((ItemBuilder ) super .clone ());
12621262 clone .itemStack = itemStack .clone ();
1263+ clone .buildCache = new HashMap <>(buildCache );
12631264 if (lore != null )
12641265 clone .lore = new ArrayList <>(lore );
12651266 if (customModelDataFloats != null )
You can’t perform that action at this time.
0 commit comments