2023-03-16 16:28:48 +01:00
|
|
|
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
|
2023-08-06 02:21:59 +02:00
|
|
|
index f7eeccbcb4c119f46ebb82284a109f48008c68cd..2a5a4027e5d0d9d48a727834f3f5af65ea83aa23 100644
|
2023-03-16 16:28:48 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Display.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Display.java
|
2023-08-06 02:21:59 +02:00
|
|
|
@@ -694,7 +694,7 @@ public abstract class Display extends Entity {
|
|
|
|
Logger logger = Display.LOGGER;
|
|
|
|
|
|
|
|
Objects.requireNonNull(logger);
|
|
|
|
- Optional<Display.TextDisplay.Align> optional = dataresult.resultOrPartial(Util.prefix("Display entity", logger::error)).map(Pair::getFirst);
|
|
|
|
+ Optional<Display.TextDisplay.Align> optional = dataresult.result().map(Pair::getFirst); // Paper - hide error message
|
|
|
|
|
2023-03-16 16:28:48 +01:00
|
|
|
if (optional.isPresent()) {
|
2023-08-06 02:21:59 +02:00
|
|
|
byte b1;
|