diff --git a/viafabric-mc121/src/main/java/com/viaversion/fabric/mc121/commands/NMSCommandSender.java b/viafabric-mc121/src/main/java/com/viaversion/fabric/mc121/commands/NMSCommandSender.java index e6c6b0c..6e78771 100644 --- a/viafabric-mc121/src/main/java/com/viaversion/fabric/mc121/commands/NMSCommandSender.java +++ b/viafabric-mc121/src/main/java/com/viaversion/fabric/mc121/commands/NMSCommandSender.java @@ -18,6 +18,7 @@ package com.viaversion.fabric.mc121.commands; import com.viaversion.viaversion.api.command.ViaCommandSender; +import com.viaversion.viaversion.util.ComponentUtil; import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource; import net.minecraft.command.CommandSource; import net.minecraft.entity.Entity; @@ -43,7 +44,7 @@ public class NMSCommandSender implements ViaCommandSender { } public static MutableText fromLegacy(String legacy) { - return Text.Serialization.fromJson(legacy, DynamicRegistryManager.EMPTY); + return Text.Serialization.fromJson(ComponentUtil.legacyToJsonString(legacy), DynamicRegistryManager.EMPTY); } @Override