mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-22 18:16:14 +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) {
|
public void setLore(String... lore) {
|
||||||
if (lore != null) {
|
setLore(lore != null ? Arrays.asList(lore) : null);
|
||||||
setLore(Arrays.asList(lore));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLore(List<String> lore) {
|
public void setLore(List<String> lore) {
|
||||||
@ -215,6 +213,10 @@ public abstract class BaseConfigurableIcon implements Icon {
|
|||||||
return CollectionUtils.copy(bannerPatterns);
|
return CollectionUtils.copy(bannerPatterns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setBannerPatterns(Pattern... bannerPatterns) {
|
||||||
|
setBannerPatterns(bannerPatterns != null ? Arrays.asList(bannerPatterns) : null);
|
||||||
|
}
|
||||||
|
|
||||||
public void setBannerPatterns(List<Pattern> bannerPatterns) {
|
public void setBannerPatterns(List<Pattern> bannerPatterns) {
|
||||||
this.bannerPatterns = CollectionUtils.copy(bannerPatterns);
|
this.bannerPatterns = CollectionUtils.copy(bannerPatterns);
|
||||||
cachedRendering = null;
|
cachedRendering = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user