Bump version

This commit is contained in:
FlorianMichael 2023-04-18 01:12:49 +02:00
parent 17579eee90
commit b8dd7a24b6
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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);
}
}