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