Skip to content

Commit

Permalink
Merge server lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 19, 2024
1 parent 6600f54 commit d7e77b6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ default void sendCustomData() {
networkPlayers.forEach(player -> player.getCurrentServer().ifPresent(servers::add));

for (String server : servers) {
getServer(server).ifPresent(serverInfoWrapper ->
serverInfoWrapper.sendPluginMessage("piston:queue", outOnlineQueue.toByteArray()));
getServer(server).ifPresent(serverInfoWrapper ->
serverInfoWrapper.sendPluginMessage("piston:queue", outOnlineTarget.toByteArray()));
getServer(server).ifPresent(serverInfoWrapper -> {
serverInfoWrapper.sendPluginMessage("piston:queue", outOnlineQueue.toByteArray());
serverInfoWrapper.sendPluginMessage("piston:queue", outOnlineTarget.toByteArray());
});
}
}

Expand Down

0 comments on commit d7e77b6

Please sign in to comment.