Skip to content

Commit

Permalink
Fixed 1.20.4 proxy kick message not working
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 27, 2023
1 parent 86888a0 commit 2c2a3de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
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;
Expand Down Expand Up @@ -325,7 +326,7 @@ private static String messageToJson(final String message) {

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;
}

Expand Down

0 comments on commit 2c2a3de

Please sign in to comment.