From 3e71a66a61b7fd83fbc04a01ef74a65b23481771 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 4 Oct 2015 19:39:47 +0200 Subject: [PATCH] Specify place_schematic as exception to the node destructor api contract --- doc/lua_api.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 7b0f1e2aa..c7170e8c4 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2271,7 +2271,8 @@ These functions return the leftover itemstack. * If the `rotation` parameter is omitted, the schematic is not rotated. * `replacements` = `{["old_name"] = "convert_to", ...}` * `force_placement` is a boolean indicating whether nodes other than `air` and - `ignore` are replaced by the schematic + `ignore` are replaced by the schematic. + Node destructors `on_destruct` and `after_destruct` of the replaced node will **not** be called. * `minetest.serialize_schematic(schematic, format, options)` * Return the serialized schematic specified by schematic (see: Schematic specifier) @@ -3224,9 +3225,11 @@ Definition tables ^ default: nil ]] on_destruct = func(pos), --[[ ^ Node destructor; always called before removing node + ^ unless specified otherwise by the removing function ^ default: nil ]] after_destruct = func(pos, oldnode), --[[ ^ Node destructor; always called after removing node + ^ unless specified otherwise by the removing function ^ default: nil ]] after_place_node = func(pos, placer, itemstack, pointed_thing) --[[