This commit is contained in:
MihailRis 2025-12-07 03:08:57 +03:00 committed by ShiftyX1
parent 42248d67eb
commit 00f269ca7e
4 changed files with 8 additions and 3 deletions

View File

@ -52,7 +52,6 @@ jobs:
run: | run: |
chmod +x build/VoxelEngine chmod +x build/VoxelEngine
chmod +x AppDir/usr/bin/vctest chmod +x AppDir/usr/bin/vctest
valgrind --track-origins=yes build/VoxelEngine --headless --test dev/tests/chunks.lua
AppDir/usr/bin/vctest -e build/VoxelEngine -d dev/tests -u build AppDir/usr/bin/vctest -e build/VoxelEngine -d dev/tests -u build
- name: Build AppImage - name: Build AppImage
uses: AppImageCrafters/build-appimage-action@fe2205a4d6056be47051f7b1b3811106e9814910 uses: AppImageCrafters/build-appimage-action@fe2205a4d6056be47051f7b1b3811106e9814910

View File

@ -496,6 +496,7 @@ audio.__reset_fetch_buffer = nil
core.get_core_token = audio.input.__get_core_token core.get_core_token = audio.input.__get_core_token
function __process_post_runnables() function __process_post_runnables()
print("1")
if #__post_runnables then if #__post_runnables then
for _, func in ipairs(__post_runnables) do for _, func in ipairs(__post_runnables) do
local status, result = xpcall(func, __vc__error) local status, result = xpcall(func, __vc__error)
@ -506,6 +507,7 @@ function __process_post_runnables()
__post_runnables = {} __post_runnables = {}
end end
print("2")
local dead = {} local dead = {}
for name, co in pairs(__vc_named_coroutines) do for name, co in pairs(__vc_named_coroutines) do
local success, err = coroutine.resume(co) local success, err = coroutine.resume(co)
@ -520,10 +522,15 @@ function __process_post_runnables()
__vc_named_coroutines[name] = nil __vc_named_coroutines[name] = nil
end end
print("3")
fn_audio_reset_fetch_buffer() fn_audio_reset_fetch_buffer()
print("4")
debug.pull_events() debug.pull_events()
print("5")
network.__process_events() network.__process_events()
print("6")
block.__process_register_events() block.__process_register_events()
print("7")
block.__perform_ticks(time.delta()) block.__perform_ticks(time.delta())
end end

View File

@ -8,7 +8,6 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include <optional>
class Assets; class Assets;
class ContentControl; class ContentControl;

View File

@ -519,7 +519,7 @@ static int l_pull_events(lua::State* L, network::Network& network) {
return 1; return 1;
} }
int l_is_available(lua::State* L) { static int l_is_available(lua::State* L) {
return engine->getNetwork() != nullptr; return engine->getNetwork() != nullptr;
} }