From 3a9bd50898608e0a2f2357408df7d606046e7bbb Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 13 Feb 2022 18:30:10 +0000 Subject: BigFlower: handle environmental destruction --- src/Blocks/BlockBigFlower.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(a_Digger)->IsGameModeCreative()) + if ((a_Digger != nullptr) && a_Digger->IsPlayer() && static_cast(a_Digger)->IsGameModeCreative()) { a_ChunkInterface.SetBlock(LowerPart, E_BLOCK_AIR, 0); } -- cgit v1.2.3