summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2020-02-03 00:31:00 +0000
committerGitHub <noreply@github.com>2020-02-03 00:31:00 +0000
commitb14aa1c84714a4800d214768ff7868a7bb76f7ae (patch)
tree83f07b0c49d670e94a46cbe81b0b8cdf8ea873e9 /doc/lua_api.txt
parent4eb3baa51ed95d7661bbeecbbdf040d51ac32187 (diff)
downloadminetest-b14aa1c84714a4800d214768ff7868a7bb76f7ae.tar.gz
minetest-b14aa1c84714a4800d214768ff7868a7bb76f7ae.tar.bz2
minetest-b14aa1c84714a4800d214768ff7868a7bb76f7ae.zip
Warn of biome ID re-allocation when unregistering or clearing biomes (#9359)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 051ca97cf..96554cf51 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4098,6 +4098,9 @@ Call these functions only at load time!
* `minetest.unregister_biome(name)`
* Unregisters the biome from the engine, and deletes the entry with key
`name` from `minetest.registered_biomes`.
+ * Warning: This alters the biome to biome ID correspondences, so any
+ decorations or ores using the 'biomes' field must afterwards be cleared
+ and re-registered.
* `minetest.register_decoration(decoration definition)`
* Returns an integer object handle uniquely identifying the registered
decoration on success. To get the decoration ID, use
@@ -4112,12 +4115,15 @@ Call these functions only at load time!
* If the function is called when loading the mod, and `name` is a relative
path, then the current mod path will be prepended to the schematic
filename.
-* `minetest.clear_registered_ores()`
- * Clears all ores currently registered.
* `minetest.clear_registered_biomes()`
* Clears all biomes currently registered.
+ * Warning: Clearing and re-registering biomes alters the biome to biome ID
+ correspondences, so any decorations or ores using the 'biomes' field must
+ afterwards be cleared and re-registered.
* `minetest.clear_registered_decorations()`
* Clears all decorations currently registered.
+* `minetest.clear_registered_ores()`
+ * Clears all ores currently registered.
* `minetest.clear_registered_schematics()`
* Clears all schematics currently registered.