diff --git a/plugin/src/main/java/me/filoghost/chestcommands/icon/BaseConfigurableIcon.java b/plugin/src/main/java/me/filoghost/chestcommands/icon/BaseConfigurableIcon.java index 390110a..6cd9b95 100644 --- a/plugin/src/main/java/me/filoghost/chestcommands/icon/BaseConfigurableIcon.java +++ b/plugin/src/main/java/me/filoghost/chestcommands/icon/BaseConfigurableIcon.java @@ -58,13 +58,17 @@ public abstract class BaseConfigurableIcon implements Icon { } protected boolean shouldCacheRendering() { - if (placeholdersEnabled) { + if (placeholdersEnabled && hasDynamicPlaceholders()) { return false; + } else { + return true; } + } - return (name == null || !name.hasDynamicPlaceholders()) - && (lore == null || !lore.hasDynamicPlaceholders()) - && (skullOwner == null || !skullOwner.hasDynamicPlaceholders()); + private boolean hasDynamicPlaceholders() { + return (name != null && name.hasDynamicPlaceholders()) + || (lore != null && lore.hasDynamicPlaceholders()) + || (skullOwner != null && skullOwner.hasDynamicPlaceholders()); } public void setMaterial(Material material) {