mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Bump version
This commit is contained in:
parent
17579eee90
commit
b8dd7a24b6
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user