mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
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.
This commit is contained in:
parent
d10cccee31
commit
5b3fbf9cf7
5 changed files with 33 additions and 1 deletions
|
@ -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>]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue