Skip to content

Commit

Permalink
fix missing number when kicking users
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Jul 16, 2023
1 parent 5d198bc commit 00877af
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -46,7 +46,7 @@ public TeamPlayersScreen(Team team, BaseScreen prev) {
protected void init() {
this.kickButton = this.addRenderableWidget(Button.builder(ComponentBuilder.text("kick"), (button -> {
Set<UUID> removalIds = this.getSelectedValues().stream().map(GameProfile::getId).collect(Collectors.toSet());
Minecraft.getInstance().pushGuiLayer(new YouSureScreen(this, ComponentBuilder.text("you_sure_kick"), () -> {
Minecraft.getInstance().pushGuiLayer(new YouSureScreen(this, ComponentBuilder.text("you_sure_kick", removalIds.size()), () -> {
SkyGUIs.getNetwork().handleKickPlayers(this.team.getName(), removalIds);
this.onSuccess = () -> {
//noinspection DataFlowIssue
Expand Down

0 comments on commit 00877af

Please sign in to comment.