diff options
author | kwolekr <kwolekr@minetest.net> | 2015-08-15 14:03:36 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-08-16 15:55:07 -0400 |
commit | bcf38a2ad19116b50d0456bdd6f79d0d218e39d1 (patch) | |
tree | d56db4bc83c85d00a13dab8615c5661665b78922 /src/script/lua_api | |
parent | 5556ba168fb8bb3c234311564de36c4b130c8ab1 (diff) | |
download | minetest-bcf38a2ad19116b50d0456bdd6f79d0d218e39d1.tar.gz minetest-bcf38a2ad19116b50d0456bdd6f79d0d218e39d1.tar.bz2 minetest-bcf38a2ad19116b50d0456bdd6f79d0d218e39d1.zip |
SEnv: Remove static_exists from ActiveObjects in deleted blocks
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 9d1936769..28afdd071 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -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); |