Skip to content

Commit

Permalink
(Finally) fix change channel async problem
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioZumbi12 committed Aug 5, 2024
1 parent 2799bcd commit f8a90d9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private void addPlayerToChannel(UCChannel ch, Player p) {
return;
}
ch.addMember(p);
UChat.get().tempChannels.remove(p.getName());
UChat.get().getLang().sendMessage(p, UChat.get().getLang().get("channel.entered").replace("{channel}", ch.getName()));
}

Expand Down Expand Up @@ -121,6 +122,7 @@ private void sendMessageToPlayer(UCChannel ch, Player p, String[] args, String m
return;
}
ch.addMember(p);
UChat.get().tempChannels.remove(p.getName());
UChat.get().getLang().sendMessage(p, UChat.get().getLang().get("channel.entered").replace("{channel}", ch.getName()));
}

Expand Down

0 comments on commit f8a90d9

Please sign in to comment.