fix block.set in headless mode & fix: vctest does not cleanup worlds
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user