Fixed 1.20.4 proxy kick message not working

This commit is contained in:
RaphiMC 2023-12-27 21:05:11 +01:00
parent 86888a0d38
commit 2c2a3de7bf
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94
2 changed files with 3 additions and 6 deletions

View file

@ -90,7 +90,7 @@ dependencies {
include("net.raphimc.netminecraft:all:2.4.0-SNAPSHOT") {
exclude group: "com.google.code.gson", module: "gson"
}
include("net.raphimc:MinecraftAuth:3.0.2") {
include("net.raphimc:MinecraftAuth:3.1.0-SNAPSHOT") {
exclude group: "com.google.code.gson", module: "gson"
exclude group: "org.slf4j", module: "slf4j-api"
}
@ -102,10 +102,6 @@ dependencies {
exclude group: "io.netty"
}
include "gs.mclo:api:3.0.1"
include "org.lz4:lz4-pure-java:1.8.0"
include("org.iq80.leveldb:leveldb:0.12") {
exclude group: "com.google.guava"
}
}
sourceSets {

View file

@ -29,6 +29,7 @@ import io.netty.channel.*;
import io.netty.util.AttributeKey;
import net.lenni0451.mcstructs.nbt.INbtTag;
import net.lenni0451.mcstructs.nbt.tags.CompoundTag;
import net.lenni0451.mcstructs.nbt.tags.StringTag;
import net.lenni0451.mcstructs.text.components.StringComponent;
import net.raphimc.netminecraft.constants.ConnectionState;
import net.raphimc.netminecraft.constants.MCPackets;
@ -325,7 +326,7 @@ public class ProxyConnection extends NetClient {
private static INbtTag messageToNbt(final String message) {
final CompoundTag tag = new CompoundTag();
tag.add("text", new StringComponent(message));
tag.add("text", new StringTag(message));
return tag;
}