mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 10:05:17 +01:00
Fix removing lore
This commit is contained in:
parent
3207d63a92
commit
cca00b2593
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user