Skip to content

Commit

Permalink
don't sort anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Nov 26, 2024
1 parent ae2f902 commit c434b98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void init() {

public static void sendVoteScreenData(ServerPlayerEntity player) {
if (!BallotBox.isOpen()) return;
BallotBoxPlatformClient.getSelections(player.getUuid()).thenAccept(selections -> ServerPlayNetworking.send(player, new S2CVoteScreenData(new ArrayList<>(BallotBoxPlatformClient.categories.values()), new ArrayList<>(BallotBoxPlatformClient.options.entrySet().stream().sorted(Map.Entry.comparingByKey()).map(Map.Entry::getValue).toList()), selections)));
BallotBoxPlatformClient.getSelections(player.getUuid()).thenAccept(selections -> ServerPlayNetworking.send(player, new S2CVoteScreenData(new ArrayList<>(BallotBoxPlatformClient.categories.values()), new ArrayList<>(BallotBoxPlatformClient.options.values()), selections)));
}

private static void handleOpenVoteScreen(OpenVoteScreen packet, ServerPlayNetworking.Context context) {
Expand Down

0 comments on commit c434b98

Please sign in to comment.