1
0

Cocoa pods have three growing stages

This commit is contained in:
Mat 2020-03-23 10:19:52 +02:00 committed by GitHub
parent 7700116330
commit 4b57513dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}