summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCrops.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-05-09 11:11:06 +0200
committerMattes D <github@xoft.cz>2017-05-09 11:11:06 +0200
commit473a4ae22616d40f8004e3e3ce6c307aedd2fd6d (patch)
tree8a9314d16c7c45883b27e2a5727055c119579880 /src/Blocks/BlockCrops.h
parentMerge pull request #3699 from cuberite/apidump_patch (diff)
downloadcuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar.gz
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar.bz2
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar.lz
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar.xz
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.tar.zst
cuberite-473a4ae22616d40f8004e3e3ce6c307aedd2fd6d.zip
Diffstat (limited to 'src/Blocks/BlockCrops.h')
-rw-r--r--src/Blocks/BlockCrops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockCrops.h b/src/Blocks/BlockCrops.h
index 3563f85fd..5ca264774 100644
--- a/src/Blocks/BlockCrops.h
+++ b/src/Blocks/BlockCrops.h
@@ -29,7 +29,7 @@ public:
cFastRandom rand;
// If not fully grown, drop the "seed" of whatever is growing:
- if (a_Meta < (RipeMeta - 1))
+ if (a_Meta < RipeMeta)
{
switch (m_BlockType)
{
@@ -97,7 +97,7 @@ public:
// If there is still room to grow and the plant can grow, then grow.
// Otherwise if the plant needs to die, then dig it up
- if ((Meta < (RipeMeta - 1)) && (Action == paGrowth))
+ if ((Meta < RipeMeta) && (Action == paGrowth))
{
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, m_BlockType, ++Meta);
}