aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-04-06 21:50:45 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-06 22:50:45 +0200
commit88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948 (patch)
tree54cc23c5eead39211d2dadbf1be0e02f90f41f0a /clientmods
parentbe0663696514dd3d3525949be7c317c9eae9dbb0 (diff)
downloadminetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.tar.gz
minetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.tar.bz2
minetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.zip
[CSM] Add function to get the server protocol version. (#5529)
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 07464e927..3c96fae55 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -69,6 +69,7 @@ core.after(2, function()
print("[PREVIEW] loaded " .. modname .. " mod")
modstorage:set_string("current_mod", modname)
print(modstorage:get_string("current_mod"))
+ print("Server version:" .. core.get_protocol_version())
preview_minimap()
end)