From 42040e642ac5e714e807873c69bdadfa5280c423 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Wed, 13 Dec 2023 19:20:31 +0800 Subject: [PATCH] Make CustomName no longer deprecated --- .../network/datawatcher/values/EntityValues.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/EntityValues.java b/src/main/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/EntityValues.java index 5a88091a..8766d2de 100644 --- a/src/main/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/EntityValues.java +++ b/src/main/java/xiamomc/morph/backends/server/renderer/network/datawatcher/values/EntityValues.java @@ -9,11 +9,8 @@ public class EntityValues extends AbstractValues { public final SingleValue GENERAL = getSingle((byte)0); public final SingleValue AIR_TICKS = getSingle(0); - - @Deprecated - public final SingleValue> CUSTOMNAME = getSingle(Optional.of(Component.empty())); - - public final SingleValue CUSTOMNAME_VISIBLE = getSingle(false); + public final SingleValue> CUSTOM_NAME = getSingle(Optional.of(Component.empty())); + public final SingleValue CUSTOM_NAME_VISIBLE = getSingle(false); public final SingleValue SILENT = getSingle(false); public final SingleValue NO_GRAVITY = getSingle(false); public final SingleValue POSE = getSingle(Pose.STANDING); @@ -21,7 +18,7 @@ public class EntityValues extends AbstractValues public EntityValues() { - registerSingle(GENERAL, AIR_TICKS, CUSTOMNAME, CUSTOMNAME_VISIBLE, SILENT, NO_GRAVITY, + registerSingle(GENERAL, AIR_TICKS, CUSTOM_NAME, CUSTOM_NAME_VISIBLE, SILENT, NO_GRAVITY, POSE, FROZEN_TICKS); } }