mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-21 10:38:28 -05:00
Fixed 1.20.4 proxy kick message not working
This commit is contained in:
parent
86888a0d38
commit
2c2a3de7bf
2 changed files with 3 additions and 6 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue