[CSM] Add flavour limits controlled by server (#5930)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 18 Jul 2017 19:39:55 +0000 (21:39 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jul 2017 19:39:55 +0000 (21:39 +0200)
commit79f19b8369a0120fbf0bd0ee3739989fbbbca50e
tree0051cde3efe56d35d03aa50a5095d9b8ba04d15b
parent7e3cdf7088b1fb6744d0bd9cc903823b6e3bbfe3
[CSM] Add flavour limits controlled by server (#5930)

* [CSM] Add flavour limits controlled by server

Server send flavour limits to client permitting to disable or limit some Lua calls

* Add limits for reading nodedefs and itemdefs

* flavour: Add lookup node limits

* Merge get_node_or_nil into get_node.

Sending fake node doesn't make sense in CSM, just return nil if node is not available for any reason

* Add node range customization when noderange flavour is enabled (default 8 nodes)

* Limit nodes range & disable chat message sending by default

* Bump protocol version
18 files changed:
builtin/settingtypes.txt
doc/client_lua_api.md
minetest.conf.example
src/client.cpp
src/client.h
src/defaultsettings.cpp
src/network/clientopcodes.cpp
src/network/clientpackethandler.cpp
src/network/networkprotocol.h
src/network/serveropcodes.cpp
src/network/serverpackethandler.cpp
src/script/lua_api/l_client.cpp
src/script/lua_api/l_client.h
src/script/lua_api/l_env.cpp
src/server.cpp
src/server.h
src/settings.cpp
src/settings.h