SPIGOT-7391: Preserve vanilla sign json where not modified by event

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-06-14 18:36:22 +10:00
parent b68e6ca9c8
commit 289dcffffa
2 changed files with 20 additions and 19 deletions

View File

@@ -109,7 +109,7 @@ public class CraftSign<T extends TileEntitySign> extends CraftBlockEntityState<T
for (int i = 0; i < 4; i++) {
if (i < lines.length && lines[i] != null) {
components[i] = IChatBaseComponent.literal("").append(CraftChatMessage.fromString(lines[i])[0]); // SPIGOT-7372: Vanilla wants a literal first
components[i] = CraftChatMessage.fromString(lines[i])[0];
} else {
components[i] = IChatBaseComponent.empty();
}