summaryrefslogtreecommitdiff
path: root/src/nodedef.h
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 /src/nodedef.h
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 'src/nodedef.h')
-rw-r--r--src/nodedef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 1392e51d4..853b9bddd 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -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 ---