mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
SEnv: Remove static_exists from ActiveObjects in deleted blocks
This commit is contained in:
parent
5556ba168f
commit
bcf38a2ad1
3 changed files with 36 additions and 3 deletions
|
@ -773,10 +773,12 @@ int ModApiEnvMod::l_delete_area(lua_State *L)
|
|||
for (s16 y = bpmin.Y; y <= bpmax.Y; y++)
|
||||
for (s16 x = bpmin.X; x <= bpmax.X; x++) {
|
||||
v3s16 bp(x, y, z);
|
||||
if (map.deleteBlock(bp))
|
||||
if (map.deleteBlock(bp)) {
|
||||
env->setStaticForActiveObjectsInBlock(bp, false);
|
||||
event.modified_blocks.insert(bp);
|
||||
else
|
||||
} else {
|
||||
success = false;
|
||||
}
|
||||
}
|
||||
|
||||
map.dispatchEvent(&event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue