summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodarg <git@rgrado.nl>2022-02-08 16:06:05 +0100
committerAlexander Harkness <me@bearbin.net>2022-02-09 09:45:25 +0100
commit49322163d55cb1da0929b7a342c596f77cfeb283 (patch)
treed1fbf78d7c4c0878d1af8f191b5b2f607a66636b
parentUpdate BlockBigFlower.h (diff)
downloadcuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar.gz
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar.bz2
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar.lz
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar.xz
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.tar.zst
cuberite-49322163d55cb1da0929b7a342c596f77cfeb283.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockBigFlower.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Blocks/BlockBigFlower.h b/src/Blocks/BlockBigFlower.h
index c6612032f..4acebaa38 100644
--- a/src/Blocks/BlockBigFlower.h
+++ b/src/Blocks/BlockBigFlower.h
@@ -125,9 +125,12 @@ private:
auto lowerPartPos = a_BlockPos - Vector3i(0, 1, 0);
if (a_ChunkInterface.GetBlock(lowerPartPos) == a_OldBlockType)
{
- if (a_Digger->IsPlayer() && (static_cast<const cPlayer *>(a_Digger))->IsGameModeCreative()) {
+ if (a_Digger->IsPlayer() && (static_cast<const cPlayer *>(a_Digger))->IsGameModeCreative())
+ {
a_ChunkInterface.SetBlock(lowerPartPos, E_BLOCK_AIR, 0);
- } else {
+ }
+ else
+ {
a_ChunkInterface.DropBlockAsPickups(lowerPartPos);
}
}