Skip to content

Commit

Permalink
Merge branch '1.21.1' into 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 2, 2024
2 parents 9183b87 + 2635cd8 commit c77b876
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected <X> void onEntryWrite(CustomEntry<X> entry, X oldVal, X newVal)
{
super.onEntryWrite(entry, oldVal, newVal);

if (entry.equals(CustomEntries.DISGUISE_NAME))
if (entry.equals(CustomEntries.DISGUISE_NAME) && this.getEntityType() != EntityType.PLAYER)
{
var str = newVal.toString();
var component = str.isEmpty() ? null : Component.literal(str);
Expand Down

0 comments on commit c77b876

Please sign in to comment.