summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-11-28 12:30:21 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-11-28 12:30:21 +0100
commitddab98412f3fc47eedfa74f8a4edafd324e59707 (patch)
tree7087657e4b9d90e2e0559bfdc25cf2b3b52e51fe /doc/lua_api.txt
parent6dc7177a5de51f1329c1be04e7f07be64d5cc76c (diff)
downloadminetest-lifo-fixes.tar.gz
minetest-lifo-fixes.tar.bz2
minetest-lifo-fixes.zip
Add static_save and prevent UDP connect exhaustionslifo-fixes
This merges two pull requests from 5.0
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 728fd0a1c..ca6f1585f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4048,6 +4048,10 @@ Definition tables
nametag = "", -- by default empty, for players their name is shown if empty
nametag_color = <color>, -- sets color of nametag as ColorSpec
infotext = "", -- by default empty, text to be shown when pointed at object
+ static_save = true,
+ -- ^ If false, never save this object statically. It will simply be deleted when the block gets unloaded.
+ -- ^ The get_staticdata() callback is never called then.
+ -- ^ Defaults to 'true'
}
### Entity definition (`register_entity`)