mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 20:31:30 +01:00
SkinTrait should only update if the Placeholder changes (#2703)
* Make SkinTrait only update when required * Add back skinName check
This commit is contained in:
parent
81404b4d41
commit
13f7961556
@ -37,7 +37,7 @@ public class SkinTrait extends Trait {
|
||||
if (skinName == null)
|
||||
return;
|
||||
String filled = ChatColor.stripColor(Placeholders.replace(skinName, null, npc).toLowerCase());
|
||||
if (!filled.equalsIgnoreCase(skinName)) {
|
||||
if (!filled.equalsIgnoreCase(skinName) && !filled.equalsIgnoreCase(filledPlaceholder)) {
|
||||
filledPlaceholder = filled;
|
||||
if (update) {
|
||||
onSkinChange(true);
|
||||
|
Loading…
Reference in New Issue
Block a user