From b8dd7a24b6453fbb950242993fb518e329eec16f Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Tue, 18 Apr 2023 01:12:49 +0200 Subject: [PATCH] Bump version --- gradle.properties | 2 +- .../mixin/base/MixinMultiplayerServerListPinger.java | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 1c2ff086..c12a33db 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ loader_version=0.14.19 fabric_api_version=0.76.0+1.19.4 # viafabricplus -mod_version=2.5.9 +mod_version=2.6.0 maven_group=de.florianmichael archives_base_name=viafabricplus diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/base/MixinMultiplayerServerListPinger.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/base/MixinMultiplayerServerListPinger.java index 95a3a8d6..5b54614a 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/base/MixinMultiplayerServerListPinger.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/base/MixinMultiplayerServerListPinger.java @@ -39,12 +39,8 @@ public class MixinMultiplayerServerListPinger { @Inject(method = "add", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;Z)Lnet/minecraft/network/ClientConnection;"), locals = LocalCapture.CAPTURE_FAILHARD) public void trackSessions(ServerInfo entry, Runnable saver, CallbackInfo ci, ServerAddress serverAddress, Optional optional, InetSocketAddress inetSocketAddress) { final ComparableProtocolVersion version = ((IServerInfo) entry).viafabricplus_forcedVersion(); - if (version != null) { - ProtocolHack.getForcedVersions().put(inetSocketAddress, version); - } - if (ProtocolHack.isEqualToOrForced(inetSocketAddress, BedrockProtocolVersion.bedrockLatest)) { - ProtocolHack.getRakNetPingSessions().add(inetSocketAddress); - } + if (version != null) ProtocolHack.getForcedVersions().put(inetSocketAddress, version); + if (ProtocolHack.isEqualToOrForced(inetSocketAddress, BedrockProtocolVersion.bedrockLatest)) ProtocolHack.getRakNetPingSessions().add(inetSocketAddress); } }