make the generator not plant flowers when game functionality is below version 0.0.23a

This commit is contained in:
yeti0904 2023-01-08 19:54:27 +00:00
parent ed547fdb1e
commit a491276cba

View File

@ -5,6 +5,7 @@
#include "Platform.h"
#include "World.h"
#include "Utils.h"
#include "Game.h"
volatile float Gen_CurrentProgress;
volatile const char* Gen_CurrentState;
@ -488,6 +489,10 @@ static void NotchyGen_CreateSurfaceLayer(void) {
}
static void NotchyGen_PlantFlowers(void) {
if (Game_Version.Version < VERSION_0023) {
return;
}
int numPatches;
BlockRaw block;
int patchX, patchZ;