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. --- src/nodedef.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nodedef.h') 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 --- -- cgit v1.2.3