geforkt von Mirrors/Paper
526795bacd
* Update patches to handle vineflower decompiler * update patches again to handle inlined simple lambdas * update vf again and re-apply/rebuild patches * update patches after removal of verify-merges flag * fix compile issue * remove maven local * fix some issues * address more issues * fix collision patch * use paperweight release * more fixes * update fineflower and fix patches again * add missing comment descriptor --------- Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
20 Zeilen
1.1 KiB
Diff
20 Zeilen
1.1 KiB
Diff
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 4a9aad128c884d659f42f5d6b35e2d7147c4bc17..bba45aa7ba4fa578344ec2b9dfa552097770a59f 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 {
|
|
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()) {
|