Skip to content

Commit 50d02de

Browse files
committed
fix: fix nodejs
1 parent 13ba472 commit 50d02de

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/lse/api/helper/BlockHelper.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
namespace lse::api {
77
bool BlockHelper::isValidHeight(WeakRef<Dimension> dimension, std::variant<int, float> height) {
8-
auto dim = dimension.lock();
9-
if (dim) {
8+
if (auto dim = dimension.lock()) {
109
if (std::holds_alternative<int>(height)) {
1110
int y = std::get<int>(height);
1211
return dim->mHeightRange->mMin <= y && dim->mHeightRange->mMax >= y;
@@ -18,4 +17,4 @@ bool BlockHelper::isValidHeight(WeakRef<Dimension> dimension, std::variant<int,
1817

1918
return false;
2019
}
21-
} // namespace lse::api
20+
} // namespace lse::api

xmake.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ target("LegacyScriptEngine")
218218
"LSE_BACKEND_NODEJS"
219219
)
220220
remove_files("src/legacy/main/PythonHelper.cpp")
221-
remove_files("src/legacy/legacyapi/db/impl/mysql/*.cpp")
222221
set_basename("legacy-script-engine-nodejs")
223222
after_build(function(target)
224223
local langPath = path.join(os.projectdir(), "src/lang/")

0 commit comments

Comments
 (0)