Fix removing lore

This commit is contained in:
filoghost 2020-10-12 23:01:44 +02:00
parent 3207d63a92
commit cca00b2593

View File

@ -129,9 +129,7 @@ public abstract class BaseConfigurableIcon implements Icon {
}
public void setLore(String... lore) {
if (lore != null) {
setLore(Arrays.asList(lore));
}
setLore(lore != null ? Arrays.asList(lore) : null);
}
public void setLore(List<String> lore) {
@ -215,6 +213,10 @@ public abstract class BaseConfigurableIcon implements Icon {
return CollectionUtils.copy(bannerPatterns);
}
public void setBannerPatterns(Pattern... bannerPatterns) {
setBannerPatterns(bannerPatterns != null ? Arrays.asList(bannerPatterns) : null);
}
public void setBannerPatterns(List<Pattern> bannerPatterns) {
this.bannerPatterns = CollectionUtils.copy(bannerPatterns);
cachedRendering = null;