mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-22 23:15:36 +01:00
Fix text display error on spawn
This commit is contained in:
parent
a929f0aff3
commit
7139479d40
1 changed files with 11 additions and 0 deletions
|
@ -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<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()) {
|
Loading…
Add table
Reference in a new issue