Skip to content

Commit

Permalink
Fix velocity ping passthrough (#4626)
Browse files Browse the repository at this point in the history
  • Loading branch information
basaigh authored May 3, 2024
1 parent b39ed5d commit a39cd65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
package org.geysermc.geyser.platform.velocity;

import com.velocitypowered.api.event.proxy.ProxyPingEvent;
import com.velocitypowered.api.network.ProtocolState;
import com.velocitypowered.api.network.ProtocolVersion;
import com.velocitypowered.api.proxy.InboundConnection;
import com.velocitypowered.api.proxy.ProxyServer;
Expand Down Expand Up @@ -88,6 +89,11 @@ public boolean isActive() {
public ProtocolVersion getProtocolVersion() {
return ProtocolVersion.MAXIMUM_VERSION;
}

@Override
public ProtocolState getProtocolState() {
return ProtocolState.STATUS;
}
}

}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ viaversion = "4.9.2"
adapters = "1.12-SNAPSHOT"
commodore = "2.2"
bungeecord = "a7c6ede"
velocity = "3.1.1"
velocity = "3.3.0-SNAPSHOT"
viaproxy = "3.2.1"
fabric-minecraft = "1.20.5"
fabric-loader = "0.15.10"
Expand Down

0 comments on commit a39cd65

Please sign in to comment.