summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-04-27 10:49:44 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-27 11:49:44 +0200
commit1ef9eee31133a3001ed0c642df5cbe54169850de (patch)
tree2cccea0b614ff4601b2d42fcd6810e1ea1fddd3a /doc/lua_api.txt
parentd130e1fdc09398367bfed3e0d4a4b2574ca33ab1 (diff)
downloadminetest-1ef9eee31133a3001ed0c642df5cbe54169850de.tar.gz
minetest-1ef9eee31133a3001ed0c642df5cbe54169850de.tar.bz2
minetest-1ef9eee31133a3001ed0c642df5cbe54169850de.zip
Allow scripts to get the client protocol version in non-debug builds. (#5649)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index d4141b5d4..b47046cb1 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1991,11 +1991,11 @@ Helper functions
max_jitter = 0.5, -- maximum packet time jitter
avg_jitter = 0.03, -- average packet time jitter
connection_uptime = 200, -- seconds since client connected
+ prot_vers = 31, -- protocol version used by client
-- following information is available on debug build only!!!
-- DO NOT USE IN MODS
--ser_vers = 26, -- serialization version used by client
- --prot_vers = 23, -- protocol version used by client
--major = 0, -- major version number
--minor = 4, -- minor version number
--patch = 10, -- patch version number