From 2635cd82c8c986811648c4ea2e19e9c87a4d55e8 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Tue, 3 Dec 2024 02:00:30 +0800 Subject: [PATCH] misc: Don't set entity custom name for player disguise --- .../network/datawatcher/watchers/types/EntityWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/nifeather/morph/backends/server/renderer/network/datawatcher/watchers/types/EntityWatcher.java b/src/main/java/xyz/nifeather/morph/backends/server/renderer/network/datawatcher/watchers/types/EntityWatcher.java index 9310d26d..920d3ae8 100644 --- a/src/main/java/xyz/nifeather/morph/backends/server/renderer/network/datawatcher/watchers/types/EntityWatcher.java +++ b/src/main/java/xyz/nifeather/morph/backends/server/renderer/network/datawatcher/watchers/types/EntityWatcher.java @@ -79,7 +79,7 @@ protected void onEntryWrite(CustomEntry 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);