3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-26 16:12:43 +01:00

Update VV API usage

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-04-01 14:20:15 +02:00
Ursprung 4e5b6fe876
Commit 2b953556ec
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -24,6 +24,7 @@ import com.viaversion.viaversion.libs.gson.JsonObject;
import com.viaversion.viaversion.libs.gson.JsonPrimitive;
import com.viaversion.viaversion.protocols.protocol1_16to1_15_2.ClientboundPackets1_16;
import com.viaversion.viaversion.util.ComponentUtil;
import com.viaversion.viaversion.util.SerializerVersion;
public class TranslatableRewriter1_16 extends TranslatableRewriter<ClientboundPackets1_16> {
@ -74,7 +75,7 @@ public class TranslatableRewriter1_16 extends TranslatableRewriter<ClientboundPa
}
// show_text as chat component json, show_entity and show_item serialized as snbt
JsonObject convertedObject = (JsonObject) ComponentUtil.convertJson(object, ComponentUtil.SerializerVersion.V1_16, ComponentUtil.SerializerVersion.V1_15);
JsonObject convertedObject = (JsonObject) ComponentUtil.convertJson(object, SerializerVersion.V1_16, SerializerVersion.V1_15);
object.add("hoverEvent", convertedObject.getAsJsonObject("hoverEvent"));
}