Null check for skinname

This commit is contained in:
fullwall 2020-12-29 14:25:12 +08:00
parent 1ae074278e
commit 0b1a8cc369

View File

@ -32,6 +32,8 @@ public class SkinTrait extends Trait {
}
private void checkPlaceholder(boolean update) {
if (skinName == null)
return;
String filled = ChatColor.stripColor(Placeholders.replace(skinName, null, npc).toLowerCase());
if (!filled.equalsIgnoreCase(skinName)) {
filledPlaceholder = filled;