aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0849-Fix-text-display-error-on-spawn.patch
blob: 6dc36441251546763733f8fa2b751264112c64a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nassim Jahnke <nassim@njahnke.dev>
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 622ec8aa412bca354e6a14693e0d19a941cf4c1b..cad5104baf9941f69d4a6935c0a210942b0f84f2 100644
--- a/src/main/java/net/minecraft/world/entity/Display.java
+++ b/src/main/java/net/minecraft/world/entity/Display.java
@@ -899,7 +899,7 @@ public abstract class Display extends Entity {
             byte var10 = 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()) {
                 var10 = switch ((Display.TextDisplay.Align)optional.get()) {