summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorJacob <jacobjm18@gmail.com>2017-01-19 17:21:05 +0100
committerMattes D <github@xoft.cz>2017-01-19 17:21:05 +0100
commit0f687c71827a52f19cee943fe46b8899576be92e (patch)
tree830048214126f0f416826f125325b16b887b275a /src/Items
parentMerge pull request #3553 from cuberite/RemoveChunkQueuedAssert (diff)
downloadcuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar.gz
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar.bz2
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar.lz
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar.xz
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.tar.zst
cuberite-0f687c71827a52f19cee943fe46b8899576be92e.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemBigFlower.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemBigFlower.h b/src/Items/ItemBigFlower.h
index a052485e4..f7171f2bc 100644
--- a/src/Items/ItemBigFlower.h
+++ b/src/Items/ItemBigFlower.h
@@ -35,12 +35,11 @@ public:
) override
{
// Can only be placed on the floor:
- if (a_BlockFace != BLOCK_FACE_TOP)
+ if ((a_BlockY < 0) || (a_World.GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_AIR))
{
return false;
}
- AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
a_BlocksToSet.emplace_back(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_BIG_FLOWER, a_EquippedItem.m_ItemDamage & 0x07);
if (a_BlockY < cChunkDef::Height - 1)
{