diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-02-13 19:30:10 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2022-02-13 19:30:10 +0100 |
commit | 3a9bd50898608e0a2f2357408df7d606046e7bbb (patch) | |
tree | e22b5b62a914c107583d5315389e93a7b17ee3d8 /src/Blocks | |
parent | ClientHandle: cancel multi-block placements correcty (diff) | |
download | cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar.gz cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar.bz2 cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar.lz cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar.xz cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.tar.zst cuberite-3a9bd50898608e0a2f2357408df7d606046e7bbb.zip |
Diffstat (limited to 'src/Blocks')
-rw-r--r-- | src/Blocks/BlockBigFlower.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockBigFlower.h b/src/Blocks/BlockBigFlower.h index efbe54f6a..1b2c0d735 100644 --- a/src/Blocks/BlockBigFlower.h +++ b/src/Blocks/BlockBigFlower.h @@ -125,7 +125,7 @@ private: { // Prevent creative punches from dropping pickups. // TODO: Simplify to SetBlock and remove the IsMetaTopPart check in DropBlockAsPickups when 1.13 blockstates arrive. - if (a_Digger->IsPlayer() && static_cast<const cPlayer *>(a_Digger)->IsGameModeCreative()) + if ((a_Digger != nullptr) && a_Digger->IsPlayer() && static_cast<const cPlayer *>(a_Digger)->IsGameModeCreative()) { a_ChunkInterface.SetBlock(LowerPart, E_BLOCK_AIR, 0); } |