Skip to content

Commit

Permalink
1.1.5 - Velocity b329+ support
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyWatcher2019 committed Jan 23, 2024
1 parent 649b685 commit 24da87d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

setGroup("net.elytrium")
setVersion("1.1.4")
setVersion("1.1.5")

compileJava {
getOptions().setEncoding("UTF-8")
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions src/main/java/net/elytrium/limboreconnect/LimboReconnect.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 24da87d

Please sign in to comment.