summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.h b/src/World.h
index a0e2d0dbc..2ff8fbe29 100644
--- a/src/World.h
+++ b/src/World.h
@@ -667,14 +667,14 @@ public:
/** Replaces the specified block with air, and calls the OnBroken block handler.
Wakes up the simulators. Doesn't produce pickups, use DropBlockAsPickups() for that instead.
Returns true on success, false if the chunk is not loaded. */
- bool DigBlock(Vector3i a_BlockPos, const cEntity * a_Digger);
+ bool DigBlock(Vector3i a_BlockPos, const cEntity * a_Digger = nullptr);
/** OBSOLETE, use the Vector3-based overload instead.
Replaces the specified block with air, and calls the apropriate block handlers (OnBreaking(), OnBroken()).
Wakes up the simulators.
Doesn't produce pickups, use DropBlockAsPickups() for that instead.
Returns true on success, false if the chunk is not loaded. */
- bool DigBlock(int a_X, int a_Y, int a_Z, cEntity * a_Digger)
+ bool DigBlock(int a_X, int a_Y, int a_Z, cEntity * a_Digger = nullptr)
{
return DigBlock({a_X, a_Y, a_Z}, a_Digger);
}