Updated Via API usage

This commit is contained in:
RaphiMC 2023-12-10 12:24:44 +01:00
parent 4d39a0441a
commit 3cc5cb019a
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94
2 changed files with 5 additions and 5 deletions

View file

@ -53,8 +53,8 @@ repositories {
}
dependencies {
include "com.viaversion:viaversion-common:4.9.2"
include "com.viaversion:viabackwards-common:4.9.2-20231208.084014-2"
include "com.viaversion:viaversion-common:4.9.3-SNAPSHOT"
include "com.viaversion:viabackwards-common:4.9.2-SNAPSHOT"
include "com.viaversion:viarewind-common:3.0.5"
include("net.raphimc:ViaLegacy:2.2.22-SNAPSHOT") {
exclude group: "net.lenni0451.mcstructs", module: "text"

View file

@ -20,7 +20,7 @@ package net.raphimc.viaproxy.injection.mixins;
import com.viaversion.viaversion.libs.gson.JsonElement;
import com.viaversion.viaversion.libs.gson.JsonNull;
import com.viaversion.viaversion.libs.opennbt.tag.builtin.Tag;
import com.viaversion.viaversion.protocols.protocol1_20_3to1_20_2.Protocol1_20_3To1_20_2;
import com.viaversion.viaversion.protocols.protocol1_20_3to1_20_2.util.ComponentConverter;
import net.lenni0451.mcstructs.text.ATextComponent;
import net.lenni0451.mcstructs.text.serializer.TextComponentCodec;
import net.lenni0451.mcstructs.text.serializer.TextComponentSerializer;
@ -29,8 +29,8 @@ import net.raphimc.vialegacy.api.util.converter.NbtConverter;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
@Mixin(Protocol1_20_3To1_20_2.class)
public abstract class MixinProtocol1_20_3To1_20_2 {
@Mixin(ComponentConverter.class)
public abstract class MixinComponentConverter {
@Overwrite
public static JsonElement tagComponentToJson(final Tag tag) {