aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2017-09-11 14:50:06 +0200
committersfan5 <sfan5@live.de>2017-09-11 20:54:20 +0200
commit5b3fbf9cf75f9f637c666d34e2489fef0cc035d9 (patch)
tree689ae2c108a895f6b2ca3afc826b1da46baf156d /doc
parentd10cccee3108b45cf7085ffdbff9b5f2a4045ea7 (diff)
downloadminetest-5b3fbf9cf75f9f637c666d34e2489fef0cc035d9.tar.gz
minetest-5b3fbf9cf75f9f637c666d34e2489fef0cc035d9.tar.bz2
minetest-5b3fbf9cf75f9f637c666d34e2489fef0cc035d9.zip
Implement client node dig prediction
Dig prediction allows clients to remove dug nodes without waiting for server acknowledgement. This patch allows mods to override dig prediction, it can either be turned off or a different "prediction node" can be selected.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6bdb63ef3..9a5754368 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4240,6 +4240,13 @@ Definition tables
on ground when the player places the item. Server will always update
actual result to client in a short moment.
]]
+ node_dig_prediction = "air",
+ --[[
+ ^ if "", no prediction is made
+ ^ if "air", node is removed
+ ^ Otherwise should be name of node which the client immediately places
+ upon digging. Server will always update actual result shortly.
+ ]]
sound = {
breaks = "default_tool_break", -- tools only
place = --[[<SimpleSoundSpec>]],