From 06f6550624bf74792675a36bd38d1a0f7566bd88 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 7 Dec 2025 03:23:48 +0300 Subject: [PATCH] fix the stupid --- .github/workflows/appimage.yml | 4 ++-- res/scripts/stdlib.lua | 7 ------- src/logic/scripting/lua/libs/libnetwork.cpp | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index 9e63330d..9c943bca 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -38,11 +38,11 @@ jobs: # install EnTT git clone https://github.com/skypjack/entt.git cd entt/build - cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Debug -DENTT_INSTALL=on .. + cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DENTT_INSTALL=on .. sudo make install cd ../.. - name: Configure - run: cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Debug -DVOXELENGINE_BUILD_APPDIR=1 -DVOXELENGINE_BUILD_TESTS=ON -DVC_BUILD_NAME="${{ inputs.build_name }}" + run: cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_APPDIR=1 -DVOXELENGINE_BUILD_TESTS=ON -DVC_BUILD_NAME="${{ inputs.build_name }}" - name: Build run: cmake --build build -t install - name: Run tests diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index 75a8b23c..dcca0f28 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -496,7 +496,6 @@ audio.__reset_fetch_buffer = nil core.get_core_token = audio.input.__get_core_token function __process_post_runnables() - print("1") if #__post_runnables then for _, func in ipairs(__post_runnables) do local status, result = xpcall(func, __vc__error) @@ -507,7 +506,6 @@ function __process_post_runnables() __post_runnables = {} end - print("2") local dead = {} for name, co in pairs(__vc_named_coroutines) do local success, err = coroutine.resume(co) @@ -522,15 +520,10 @@ function __process_post_runnables() __vc_named_coroutines[name] = nil end - print("3") fn_audio_reset_fetch_buffer() - print("4") debug.pull_events() - print("5") network.__process_events() - print("6") block.__process_register_events() - print("7") block.__perform_ticks(time.delta()) end diff --git a/src/logic/scripting/lua/libs/libnetwork.cpp b/src/logic/scripting/lua/libs/libnetwork.cpp index d866abc8..39084520 100644 --- a/src/logic/scripting/lua/libs/libnetwork.cpp +++ b/src/logic/scripting/lua/libs/libnetwork.cpp @@ -520,7 +520,7 @@ static int l_pull_events(lua::State* L, network::Network& network) { } static int l_is_available(lua::State* L) { - return engine->getNetwork() != nullptr; + return lua::pushboolean(L, engine->getNetwork() != nullptr); } template