summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemDye.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-06-23 18:10:49 +0200
committerworktycho <work.tycho@gmail.com>2015-06-23 18:10:49 +0200
commitccd290bc724b9306ccfc66dc552ff31fa99154c5 (patch)
treeb5068b80007fdfddc43c56c7cb0a0543f7776c16 /src/Items/ItemDye.h
parentMerge pull request #2280 from SamJBarney/master (diff)
parentFixed melon metadata when growing from stem. (diff)
downloadcuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar.gz
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar.bz2
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar.lz
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar.xz
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.tar.zst
cuberite-ccd290bc724b9306ccfc66dc552ff31fa99154c5.zip
Diffstat (limited to 'src/Items/ItemDye.h')
-rw-r--r--src/Items/ItemDye.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemDye.h b/src/Items/ItemDye.h
index 273af826a..c2635bcb6 100644
--- a/src/Items/ItemDye.h
+++ b/src/Items/ItemDye.h
@@ -27,7 +27,7 @@ public:
) override
{
// Handle growing the plants:
- if (a_Item.m_ItemDamage == E_META_DYE_WHITE)
+ if ((a_Item.m_ItemDamage == E_META_DYE_WHITE) && (a_BlockFace != BLOCK_FACE_NONE))
{
if (a_World->GrowRipePlant(a_BlockX, a_BlockY, a_BlockZ, true))
{