SPIGOT-7391: Preserve vanilla sign json where not modified by event
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user