Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
修复build
Browse files Browse the repository at this point in the history
  • Loading branch information
twoone3 committed Jul 1, 2022
1 parent d0a524a commit db8e447
Show file tree
Hide file tree
Showing 2 changed files with 999 additions and 4 deletions.
5 changes: 1 addition & 4 deletions API/McAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ bool setMaxNumPlayers(int num) {
return back == 0;
}
ObjectiveClass getDisplayObjective(const string& slot) {
auto res = Global<Scoreboard>->getDisplayObjective(slot);
if (!res)
return nullptr;
return (Objective*)res;
return (Objective*)Global<Scoreboard>->getDisplayObjective(slot);
}
ObjectiveClass clearDisplayObjective(const string& slot) {
return Global<Scoreboard>->clearDisplayObjective(slot);
Expand Down
Loading

0 comments on commit db8e447

Please sign in to comment.