Skip to content

Commit dda5e5b

Browse files
committed
fix: fix SimulatedPlayerHelper.cpp
1 parent ec0374a commit dda5e5b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/lse/api/ScoreboardHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include "mc/world/scores/IdentityDictionary.h"
44

55
namespace lse::api {
6-
ScoreboardId ScoreboardHelper::getId(Scoreboard const& scoreboard, const PlayerScoreboardId& playerId) {
7-
auto dict = scoreboard.mIdentityDict->mPlayers;
6+
ScoreboardId ScoreboardHelper::getId(Scoreboard const& scoreboard, PlayerScoreboardId const& playerId) {
7+
auto& dict = scoreboard.mIdentityDict->mPlayers;
88
auto found = dict->find(playerId);
99
if (found != dict->end()) {
1010
return found->second;

src/lse/api/SimulatedPlayerHelper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
#include "mc/deps/ecs/gamerefs_entity/EntityContext.h"
44
#include "mc/entity/components_json_legacy/NavigationComponent.h"
55
#include "mc/server/sim/LookAtIntent.h"
6+
#include "mc/server/sim/MoveInDirectionIntent.h"
7+
#include "mc/server/sim/MoveToPositionIntent.h"
68
#include "mc/server/sim/MovementIntent.h"
9+
#include "mc/server/sim/NavigateToEntityIntent.h"
10+
#include "mc/server/sim/NavigateToPositionsIntent.h"
11+
#include "mc/server/sim/VoidMoveIntent.h"
712
#include "mc/server/sim/sim.h"
813
#include "mc/world/actor/ai/navigation/PathNavigation.h"
914
#include "mc/world/actor/provider/MobMovement.h"

0 commit comments

Comments
 (0)