Skip to content

Commit

Permalink
fix: fix some error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 21, 2024
1 parent 2e52b4f commit fb4bdf6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/BlockAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "mc/world/level/block/Block.h"
#include "mc/world/level/block/actor/BlockActor.h"
#include "mc/world/level/dimension/Dimension.h"
#include "scriptx/Value.h"
#include "ScriptX/ScriptX.h"
#include <exception>

//////////////////// Class Definition ////////////////////
Expand Down Expand Up @@ -609,4 +609,4 @@ Local<Value> McClass::spawnParticle(const Arguments &args) {
return Boolean::newBoolean(true);
}
CATCH("Fail in SpawnParticle!")
}
}
3 changes: 2 additions & 1 deletion src/api/PlayerAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <mc/world/attribute/AttributeInstance.h>

#include "MoreGlobal.h"
#include "ScriptX/ScriptX.h"
#include "ll/api/form/ModalForm.h"
#include "ll/api/service/PlayerInfo.h"
#include "main/SafeGuardRecord.h"
Expand Down Expand Up @@ -71,7 +72,6 @@
#include "mc/world/scores/ScoreInfo.h"
#include "mc/world/scores/Scoreboard.h"
#include "mc/world/scores/ScoreboardId.h"
#include "scriptx/Value.h"
#include <algorithm>
#include <mc/entity/EntityContext.h>
#include <mc/entity/utilities/ActorMobilityUtils.h>
Expand All @@ -90,6 +90,7 @@
#include <unordered_map>
#include <vector>


//////////////////// Class Definition ////////////////////

ClassDefine<PlayerClass> PlayerClassBuilder =
Expand Down
4 changes: 2 additions & 2 deletions src/legacyapi/utils/FileHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ll/api/utils/StringUtils.h"
#include "ll/api/utils/WinUtils.h"

ll::Logger logger("FileHelper");
extern ll::Logger logger;

std::optional<std::string> ReadAllFile(const std::string &filePath,
bool isBinary) {
Expand Down Expand Up @@ -142,4 +142,4 @@ std::pair<int, std::string> UncompressFile(const std::string &filePath,
filePath, realToDir),
processTimeout);
return {exitCode, std::move(output)};
}
}
1 change: 1 addition & 0 deletions src/main/EconomySystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ll::Logger economicLogger("EconomicSystem");
bool EconomySystem::init() {
LLMoney_ListenBeforeEvent(MoneyBeforeEventCallback);
LLMoney_ListenAfterEvent(MoneyEventCallback);
return true;
}

money_t EconomySystem::getMoney(xuid_t player) { return LLMoney_Get(player); }
Expand Down

0 comments on commit fb4bdf6

Please sign in to comment.