Skip to content

Commit 72ed9c8

Browse files
Update proxy/src/main/java/com/velocitypowered/proxy/connection/util/ServerListPingHandler.java
Co-authored-by: powercas_gamer <[email protected]>
1 parent aca2132 commit 72ed9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/src/main/java/com/velocitypowered/proxy/connection/util/ServerListPingHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public CompletableFuture<ServerPing> getInitialPing(VelocityInboundConnection co
152152
? connection.getProtocolVersion() : ProtocolVersion.MAXIMUM_VERSION;
153153
PingPassthroughMode passthroughMode = configuration.getPingPassthrough();
154154

155-
if (passthroughMode.enabled() == false) {
155+
if (!passthroughMode.enabled()) {
156156
return CompletableFuture.completedFuture(constructLocalPing(shownVersion));
157157
} else {
158158
String virtualHostStr = connection.getVirtualHost().map(InetSocketAddress::getHostString)

0 commit comments

Comments
 (0)