Skip to content

Commit

Permalink
Merge branch 'dev/3.0.0' of https://github.com/PaperMC/Velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 23, 2024
2 parents 128b9a3 + 71bb024 commit 3109ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ public boolean reloadConfiguration() throws IOException {
boolean queryPortChanged = newConfiguration.getQueryPort() != configuration.getQueryPort();
boolean queryAlreadyEnabled = configuration.isQueryEnabled();
boolean queryEnabled = newConfiguration.isQueryEnabled();
if ((!queryEnabled && queryAlreadyEnabled) || queryPortChanged) {
if (queryAlreadyEnabled && (!queryEnabled || queryPortChanged)) {
this.cm.close(new InetSocketAddress(
configuration.getBind().getHostString(), configuration.getQueryPort()));
}
if (queryEnabled && queryPortChanged) {
if (queryEnabled && (!queryAlreadyEnabled || queryPortChanged)) {
this.cm.queryBind(newConfiguration.getBind().getHostString(),
newConfiguration.getQueryPort());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,20 @@ public boolean handle(final PluginMessagePacket packet) {
public boolean handle(PingIdentifyPacket packet) {
if (player.getConnectionInFlight() != null) {
player.getConnectionInFlight().ensureConnected().write(packet);
return true;
}
return true;

return false;
}

@Override
public boolean handle(KnownPacksPacket packet) {
if (player.getConnectionInFlight() != null) {
player.getConnectionInFlight().ensureConnected().write(packet);
return true;
}

return true;
return false;
}

@Override
Expand Down

0 comments on commit 3109ac7

Please sign in to comment.