summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockMobSpawner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockMobSpawner.h')
-rw-r--r--src/Blocks/BlockMobSpawner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Blocks/BlockMobSpawner.h b/src/Blocks/BlockMobSpawner.h
index 27d3d61de..791a71301 100644
--- a/src/Blocks/BlockMobSpawner.h
+++ b/src/Blocks/BlockMobSpawner.h
@@ -61,6 +61,10 @@ private:
const cEntity * a_Digger
) const override
{
+ if (a_Digger == nullptr)
+ {
+ return;
+ }
if (!a_Digger->IsPlayer())
{
return;