summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/BlockInfo.h')
-rw-r--r--src/BlockInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BlockInfo.h b/src/BlockInfo.h
index fe5421690..a15868abe 100644
--- a/src/BlockInfo.h
+++ b/src/BlockInfo.h
@@ -24,6 +24,10 @@ public:
/** Does this block fully occupy its voxel - is it a 'full' block? */
static bool FullyOccupiesVoxel(BLOCKTYPE Block);
+ /** Does the client pretend the block doesn't exist when clicking?
+ For example, digging a fire will hit the block below the fire, so fire is "clicked through". */
+ static bool IsClickedThrough(BLOCKTYPE a_Block);
+
/** Is a block destroyed after a single hit?
Warning: IsOneHitDig does not take into account enchantments / status effects / swim state / floating state
and therefore may be incorrect. Only use to check if hardness is 0.