Skip to content

Commit

Permalink
Fix: try fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhongzi8972 authored Jan 28, 2025
1 parent d30ddbf commit ce69cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sidebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ void sendSidebarToClients() {
GMLIB_Level::getInstance()->forEachPlayer([&](Player& player) -> bool {
if (player.isSimulatedPlayer()) return true;
auto pl = (GMLIB_Player*)&player;
pl->removeClientSidebar();
if (!mPlayerSidebarStatus.contains(pl->getUuid())) {
mPlayerSidebarStatus[pl->getUuid()] = true;
saveSidebarStatus();
}
if (mPlayerSidebarStatus[pl->getUuid()]) {
pl->removeClientSidebar();
sendSidebar(pl);
}
return true;
Expand Down

0 comments on commit ce69cb2

Please sign in to comment.