summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockIce.h1
-rw-r--r--src/Blocks/BlockMobSpawner.h4
-rw-r--r--src/Blocks/BlockOre.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/src/Blocks/BlockIce.h b/src/Blocks/BlockIce.h
index 8ff6415fb..76b48d04f 100644
--- a/src/Blocks/BlockIce.h
+++ b/src/Blocks/BlockIce.h
@@ -85,6 +85,7 @@ private:
const cEntity * a_Digger
) const override
{
+ UNUSED(a_Digger);
// If there's a solid block or a liquid underneath, convert to water, rather than air
if (a_BlockPos.y <= 0)
{
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;
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;