summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodarg <git@rgrado.nl>2022-02-07 22:27:49 +0100
committerAlexander Harkness <me@bearbin.net>2022-02-09 09:45:25 +0100
commitaf2b004d57ff8ba802649f3378f29a7b99a214f1 (patch)
treec8b39d6b1f2df6fdd23ed276e3aa9eb127ef5419
parentClientHandle: update variable names (diff)
downloadcuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar.gz
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar.bz2
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar.lz
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar.xz
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.tar.zst
cuberite-af2b004d57ff8ba802649f3378f29a7b99a214f1.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockBigFlower.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Blocks/BlockBigFlower.h b/src/Blocks/BlockBigFlower.h
index 6112329e9..fa15c3aa6 100644
--- a/src/Blocks/BlockBigFlower.h
+++ b/src/Blocks/BlockBigFlower.h
@@ -49,10 +49,6 @@ private:
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override
{
- if (IsMetaTopPart(a_BlockMeta))
- {
- return {}; // No drops from the top part
- }
// With shears, drop self (even tall grass and fern):
if ((a_Tool != nullptr) && (a_Tool->m_ItemType == E_ITEM_SHEARS))
@@ -125,7 +121,7 @@ private:
auto lowerPartPos = a_BlockPos - Vector3i(0, 1, 0);
if (a_ChunkInterface.GetBlock(lowerPartPos) == a_OldBlockType)
{
- a_ChunkInterface.DropBlockAsPickups(lowerPartPos);
+ a_ChunkInterface.SetBlock(lowerPartPos, E_BLOCK_AIR, 0);
}
}
else
@@ -134,7 +130,7 @@ private:
auto upperPartPos = a_BlockPos + Vector3i(0, 1, 0);
if (a_ChunkInterface.GetBlock(upperPartPos) == a_OldBlockType)
{
- a_ChunkInterface.DropBlockAsPickups(upperPartPos);
+ a_ChunkInterface.SetBlock(upperPartPos, E_BLOCK_AIR, 0);
}
}
}