mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix block.set in headless mode & fix: vctest does not cleanup worlds
This commit is contained in:
parent
e278f5992d
commit
c33a92abd6
2 changed files with 5 additions and 2 deletions
|
|
@ -108,8 +108,10 @@ static int l_set(lua::State* L) {
|
|||
if (chunksController == nullptr) {
|
||||
return 1;
|
||||
}
|
||||
Lighting& lighting = *chunksController->lighting;
|
||||
lighting.onBlockSet(x, y, z, id);
|
||||
if (chunksController->lighting) {
|
||||
Lighting& lighting = *chunksController->lighting;
|
||||
lighting.onBlockSet(x, y, z, id);
|
||||
}
|
||||
if (!noupdate) {
|
||||
blocks->updateSides(x, y, z);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue