From 5b3fbf9cf75f9f637c666d34e2489fef0cc035d9 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 11 Sep 2017 14:50:06 +0200 Subject: 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. --- doc/lua_api.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/lua_api.txt') 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 = --[[]], -- cgit v1.2.3