File tree Expand file tree Collapse file tree
src/main/java/xyz/theprogramsrc/supercoreapi/spigot/items Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 <groupId >xyz.theprogramsrc</groupId >
88 <artifactId >SuperCoreAPI</artifactId >
9- <version >3.6.0_BETA1 </version >
9+ <version >3.6.0_BETA2 </version >
1010 <packaging >jar</packaging >
1111
1212 <name >SuperCoreAPI</name >
Original file line number Diff line number Diff line change @@ -482,15 +482,15 @@ public ItemStack build(){
482482
483483 meta .setDisplayName (this .apply (Utils .ct (this .getDisplayName ())));
484484 meta .setLore (this .apply (Utils .ct (this .getLore ())));
485- meta . getItemFlags (). addAll ( this .getFlags ());
485+ this .getFlags (). forEach ( meta :: addItemFlags );
486486 item .setItemMeta (meta );
487487 }
488488 }else {
489489 ItemMeta meta = item .getItemMeta ();
490490 if (meta != null ){
491491 meta .setDisplayName (this .apply (Utils .ct (this .getDisplayName ())));
492492 meta .setLore (this .apply (Utils .ct (this .getLore ())));
493- meta . getItemFlags (). addAll ( this .getFlags ());
493+ this .getFlags (). forEach ( meta :: addItemFlags );
494494 item .setItemMeta (meta );
495495 }
496496 }
You can’t perform that action at this time.
0 commit comments