Skip to content

Commit 7096235

Browse files
author
TheProgramSrc
committed
Change Log:
• Bug Fixes NOTE: THIS IS A BETA, IS NOT RECOMMENDED TO USE IN PRODUCTION OR RELEASES
1 parent 6d926c5 commit 7096235

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

src/main/java/xyz/theprogramsrc/supercoreapi/spigot/items/SimpleItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)