diff --git a/build.gradle b/build.gradle index 6d60398..74bed65 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } setGroup("net.elytrium") -setVersion("1.1.4") +setVersion("1.1.5") compileJava { getOptions().setEncoding("UTF-8") diff --git a/gradle.properties b/gradle.properties index 4367ed5..67cfbce 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -limboapiVersion=1.1.16 +limboapiVersion=1.1.18 velocityVersion=3.3.0-SNAPSHOT -nettyVersion=4.1.86.Final +nettyVersion=4.1.106.Final serializerVersion=1.1.1 \ No newline at end of file diff --git a/src/main/java/net/elytrium/limboreconnect/LimboReconnect.java b/src/main/java/net/elytrium/limboreconnect/LimboReconnect.java index 239f626..b63dfe6 100644 --- a/src/main/java/net/elytrium/limboreconnect/LimboReconnect.java +++ b/src/main/java/net/elytrium/limboreconnect/LimboReconnect.java @@ -30,7 +30,7 @@ import com.velocitypowered.proxy.connection.MinecraftSessionHandler; import com.velocitypowered.proxy.connection.client.ClientPlaySessionHandler; import com.velocitypowered.proxy.connection.client.ConnectedPlayer; -import com.velocitypowered.proxy.protocol.packet.BossBar; +import com.velocitypowered.proxy.protocol.packet.BossBarPacket; import java.io.IOException; import java.nio.file.Path; import java.time.Duration; @@ -174,9 +174,9 @@ public void addPlayer(Player player, RegisteredServer server) { if (minecraftSessionHandler instanceof ClientPlaySessionHandler) { ClientPlaySessionHandler sessionHandler = (ClientPlaySessionHandler) minecraftSessionHandler; for (UUID bossBar : sessionHandler.getServerBossBars()) { - BossBar deletePacket = new BossBar(); + BossBarPacket deletePacket = new BossBarPacket(); deletePacket.setUuid(bossBar); - deletePacket.setAction(BossBar.REMOVE); + deletePacket.setAction(BossBarPacket.REMOVE); connectedPlayer.getConnection().delayedWrite(deletePacket); } sessionHandler.getServerBossBars().clear();