Skip to content

Commit

Permalink
1.1.16: Velocity b360+ support
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNugget committed Feb 16, 2024
1 parent f9db228 commit 5c71756
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.15
1.1.16
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

setGroup("net.elytrium")
setVersion("1.1.15")
setVersion("1.1.16")

compileJava {
getOptions().setEncoding("UTF-8")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.velocitypowered.api.network.ProtocolVersion;
import com.velocitypowered.proxy.protocol.MinecraftPacket;
import com.velocitypowered.proxy.protocol.ProtocolUtils;
import com.velocitypowered.proxy.protocol.StateRegistry;
import com.velocitypowered.proxy.protocol.packet.DisconnectPacket;
import com.velocitypowered.proxy.protocol.packet.chat.ChatType;
import com.velocitypowered.proxy.protocol.packet.chat.ComponentHolder;
Expand Down Expand Up @@ -338,7 +339,7 @@ public void createChatPacket(PreparedPacket packet, String text) {

private PreparedPacket createDisconnectPacket(LimboFactory factory, String message) {
return factory.createPreparedPacket().prepare(version ->
DisconnectPacket.create(LimboFilter.getSerializer().deserialize(message), version, false)).build();
DisconnectPacket.create(LimboFilter.getSerializer().deserialize(message), version, StateRegistry.PLAY)).build();
}

public void createTitlePacket(PreparedPacket preparedPacket, String title, String subtitle) {
Expand Down

0 comments on commit 5c71756

Please sign in to comment.