File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/main/java/parallelmc/parallelutils/modules/charms/data Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,8 @@ public boolean setCharmAppl(ItemStack item) {
317317
318318 meta .displayName (MiniMessage .miniMessage ().deserialize ("<yellow>Charm Applicator" ));
319319
320+ item .setItemMeta (meta );
321+
320322 options .applyCharm (item );
321323
322324 HashMap <HandlerType , IEffectSettings > effects = options .getEffects ();
@@ -325,15 +327,15 @@ public boolean setCharmAppl(ItemStack item) {
325327
326328 meta = item .getItemMeta ();
327329
330+ List <Component > lore = new ArrayList <>();
331+
332+ lore .add (MiniMessage .miniMessage ().deserialize ("<gray>" + this .options .getName ()));
333+
328334 if (loreSettings != null ) {
329335 HashMap <String , EncapsulatedType > settingMap = loreSettings .getSettings ();
330336
331337 EncapsulatedType loreSetting = settingMap .get ("lore" );
332338
333- List <Component > lore = new ArrayList <>();
334-
335- lore .add (MiniMessage .miniMessage ().deserialize ("<reset>" + this .options .getName ()));
336-
337339 if (loreSetting .getType () == Types .STRING ) {
338340
339341 String loreTotal = (String ) loreSetting .getVal ();
@@ -345,10 +347,10 @@ public boolean setCharmAppl(ItemStack item) {
345347 lore .add (MiniMessage .miniMessage ().deserialize (part ));
346348 }
347349 }
348-
349- meta .lore (lore );
350350 }
351351
352+ meta .lore (lore );
353+
352354 PersistentDataContainer pdc = meta .getPersistentDataContainer ();
353355
354356 // Mark this as a charm applicator
You can’t perform that action at this time.
0 commit comments