9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-03 14:22:14 +00:00

fix: fixed cosmetic applying owner skull npe? (Should have already been checked but is now fully checked)

This commit is contained in:
LoJoSho
2024-10-02 22:24:04 -05:00
parent 33fb680c22
commit 60e23411dc
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ public class TypeCosmetic extends Type {
}
if (itemMeta instanceof SkullMeta skullMeta) {
if (skullMeta.hasOwner()) {
if (skullMeta.hasOwner() && skullMeta.getOwner() != null) {
skullMeta.setOwner(Hooks.processPlaceholders(user.getPlayer(), skullMeta.getOwner()));
}
}

View File

@@ -75,7 +75,7 @@ public class TypeEmpty extends Type {
}
if (itemMeta instanceof SkullMeta skullMeta) {
if (skullMeta.hasOwner()) {
if (skullMeta.hasOwner() && skullMeta.getOwner() != null) {
skullMeta.setOwner(Hooks.processPlaceholders(user.getPlayer(), skullMeta.getOwner()));
}
}