File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
proxy/src/main/java/com/velocitypowered/proxy/connection/util Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ private CompletableFuture<ServerPing> attemptPingPassthrough(VelocityInboundConn
8484
8585 CompletableFuture <List <ServerPing >> pingResponses = CompletableFutures .successfulAsList (pings ,
8686 (ex ) -> fallback );
87+ // Use the new ping passthrough mode if enabled.
8788 if (mode .enabled ()) {
8889 return pingResponses .thenApply (responses -> {
8990 // Find the first non-fallback. If it includes a modlist, add it too.
@@ -142,6 +143,7 @@ private CompletableFuture<ServerPing> attemptPingPassthrough(VelocityInboundConn
142143 return fallback ;
143144 });
144145 } else {
146+ // Otherwise, use the legacy ping passthrough mode.
145147 switch (legacyMode ) {
146148 case ALL :
147149 return pingResponses .thenApply (responses -> {
You can’t perform that action at this time.
0 commit comments