Skip to content

Commit

Permalink
fix: PlayerScoreChangedEvent #1165
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Mar 26, 2023
1 parent 8b8aabe commit 75b7a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteLoader/src/llapi/EventAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ TClasslessInstanceHook(void, "?onScoreChanged@ServerScoreboard@@UEAAXAEBUScorebo
Player* player = nullptr;
auto pls = Level::getAllPlayers();
for (auto& iPlayer : pls) {
if (Global<Scoreboard>->getScoreboardId(*player).id == id) {
if (Global<Scoreboard>->getScoreboardId(*iPlayer).id == id) {
player = iPlayer;
break;
}
Expand Down

0 comments on commit 75b7a14

Please sign in to comment.