From 7139479d40c9bf1a9f79d318f9a50cdd32c2a136 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 16 Mar 2023 16:27:50 +0100 Subject: [PATCH] Fix text display error on spawn --- .../net/minecraft/world/entity/Display.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/patches/sources/net/minecraft/world/entity/Display.java.patch diff --git a/paper-server/patches/sources/net/minecraft/world/entity/Display.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/Display.java.patch new file mode 100644 index 0000000000..893b7a911c --- /dev/null +++ b/paper-server/patches/sources/net/minecraft/world/entity/Display.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/entity/Display.java ++++ b/net/minecraft/world/entity/Display.java +@@ -903,7 +903,7 @@ + b = loadFlag(b, nbt, "default_background", (byte)4); + Optional optional = Display.TextDisplay.Align.CODEC + .decode(NbtOps.INSTANCE, nbt.get("alignment")) +- .resultOrPartial(Util.prefix("Display entity", Display.LOGGER::error)) ++ .result() // Paper - Hide text display error on spawn + .map(Pair::getFirst); + if (optional.isPresent()) { + b = switch ((Display.TextDisplay.Align)optional.get()) {