feat: update chat to 1.19.2

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2022-11-21 23:17:14 +08:00
parent 3b822c613a
commit e563e1b507
3 changed files with 11 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class BukkitChatInvoke_1_19 extends BukkitChatInvoke_1_18_2 {
return base.getClass('net.minecraft.network.protocol.game.ClientboundSystemChatPacket')
}
getPacketPlayOutChat(sender: any, json: any, type: number) {
return new this.PacketPlayOutChat(this.ChatSerializer[this.nmsChatSerializerMethodName](json), type == 0 ? 1 : type)
return new this.PacketPlayOutChat(this.ChatSerializer[this.nmsChatSerializerMethodName](json), type)
}
}