SPIGOT-7372, SPIGOT-7373: Signs can't be edited, issues with SignChangeEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-06-08 12:19:59 +10:00
parent 605ce98727
commit 010814803a
2 changed files with 49 additions and 29 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] = CraftChatMessage.fromString(lines[i])[0];
components[i] = IChatBaseComponent.literal("").append(CraftChatMessage.fromString(lines[i])[0]); // SPIGOT-7372: Vanilla wants a literal first
} else {
components[i] = IChatBaseComponent.empty();
}