diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-10-09 22:12:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 22:12:19 +0200 |
commit | 6fd35be67ac4195d5c976693a71ba2ad9998666a (patch) | |
tree | aa825705ba2624b1f7e2aac4d7e9b3139bf4f31a /src/Blocks/BlockOre.h | |
parent | Beacon now checks for players in surrounding square (#4972) (diff) | |
download | cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar.gz cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar.bz2 cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar.lz cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar.xz cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.tar.zst cuberite-6fd35be67ac4195d5c976693a71ba2ad9998666a.zip |
Diffstat (limited to 'src/Blocks/BlockOre.h')
-rw-r--r-- | src/Blocks/BlockOre.h | 4 |
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; |