fix block.set behaviour if world is not open
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled

This commit is contained in:
MihailRis 2026-10-21 23:11:57 +03:00
parent 24ba0ff2dc
commit bf55ffa183

View file

@ -124,7 +124,7 @@ static int l_set(lua::State* L) {
auto chunksController = controller->getChunksController();
if (chunksController == nullptr) {
return 1;
return 0;
}
if (chunksController->lighting) {
Lighting& lighting = *chunksController->lighting;