aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0806-Fix-text-display-error-on-spawn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0806-Fix-text-display-error-on-spawn.patch')
-rw-r--r--patches/server/0806-Fix-text-display-error-on-spawn.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0806-Fix-text-display-error-on-spawn.patch b/patches/server/0806-Fix-text-display-error-on-spawn.patch
new file mode 100644
index 0000000000..7f64cfe6d9
--- /dev/null
+++ b/patches/server/0806-Fix-text-display-error-on-spawn.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Nassim Jahnke <[email protected]>
+Date: Thu, 16 Mar 2023 16:27:50 +0100
+Subject: [PATCH] Fix text display error on spawn
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/Display.java b/src/main/java/net/minecraft/world/entity/Display.java
+index bd56721485b3b4ac81c97d60fc2a83bfc20977c0..a658943669cdfd49f66ba713505d11b33306ed86 100644
+--- a/src/main/java/net/minecraft/world/entity/Display.java
++++ b/src/main/java/net/minecraft/world/entity/Display.java
+@@ -892,7 +892,7 @@ public abstract class Display extends Entity {
+ b = loadFlag(b, nbt, "default_background", (byte)4);
+ Optional<Display.TextDisplay.Align> 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()) {