mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +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
|
@ -324,6 +324,8 @@ struct ContentFeatures
|
|||
// Player cannot build to these (placement prediction disabled)
|
||||
bool rightclickable;
|
||||
u32 damage_per_second;
|
||||
// client dig prediction
|
||||
std::string node_dig_prediction;
|
||||
|
||||
// --- LIQUID PROPERTIES ---
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue