summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-23 09:19:52 +0100
committerGitHub <noreply@github.com>2020-03-23 09:19:52 +0100
commit4b57513dd65aff14d51aec99458365110ce63008 (patch)
tree355294c6e2567d38832115e0487462b920813b60 /src/Blocks
parentPickup spawn improvements (#4525) (diff)
downloadcuberite-4b57513dd65aff14d51aec99458365110ce63008.tar
cuberite-4b57513dd65aff14d51aec99458365110ce63008.tar.gz
cuberite-4b57513dd65aff14d51aec99458365110ce63008.tar.bz2
cuberite-4b57513dd65aff14d51aec99458365110ce63008.tar.lz
cuberite-4b57513dd65aff14d51aec99458365110ce63008.tar.xz
cuberite-4b57513dd65aff14d51aec99458365110ce63008.tar.zst
cuberite-4b57513dd65aff14d51aec99458365110ce63008.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockCocoaPod.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockCocoaPod.h b/src/Blocks/BlockCocoaPod.h
index f9b7fbd36..415ea4cf1 100644
--- a/src/Blocks/BlockCocoaPod.h
+++ b/src/Blocks/BlockCocoaPod.h
@@ -67,11 +67,11 @@ public:
auto typeMeta = meta & 0x03;
auto growState = meta >> 2;
- if (growState >= 3)
+ if (growState >= 2)
{
return 0;
}
- auto newState = std::min(growState + a_NumStages, 3);
+ auto newState = std::min(growState + a_NumStages, 2);
a_Chunk.SetMeta(a_RelPos, static_cast<NIBBLETYPE>(newState << 2 | typeMeta));
return newState - growState;
}