diff options
author | Sokomine <wegwerf@anarres.homenet.org> | 2018-01-07 11:47:52 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-01-07 11:47:52 +0100 |
commit | 2992b774fe65410a8acd3d06ae82dcd1eb260413 (patch) | |
tree | d15acfbbeb8693989a5876aabb84984e56a9dce6 | |
parent | 0a83c42dfdf390cef75758096a481cdf8e2c828b (diff) | |
download | minetest-2992b774fe65410a8acd3d06ae82dcd1eb260413.tar.gz minetest-2992b774fe65410a8acd3d06ae82dcd1eb260413.tar.bz2 minetest-2992b774fe65410a8acd3d06ae82dcd1eb260413.zip |
Lua API docs: Add warning that schematic placing is cached
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9d011d27f..f0b22858a 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3229,6 +3229,10 @@ These functions return the leftover itemstack. * `force_placement` is a boolean indicating whether nodes other than `air` and `ignore` are replaced by the schematic * Returns nil if the schematic could not be loaded. + * **Warning**: Once you have loaded a schematic from a file, it will be cached. Future calls + will always use the cached version and the replacement list defined for it, + regardless of whether the file or the replacement list parameter have changed. + The only way to load the file anew is to restart the server. * `minetest.place_schematic_on_vmanip(vmanip, pos, schematic, rotation, replacement, force_placement)`: * This function is analogous to minetest.place_schematic, but places a schematic onto the |