From a491276cba419528e39373aa53899cca1f8fe38a Mon Sep 17 00:00:00 2001 From: yeti0904 Date: Sun, 8 Jan 2023 19:54:27 +0000 Subject: [PATCH] make the generator not plant flowers when game functionality is below version 0.0.23a --- src/Generator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Generator.c b/src/Generator.c index adb857714..7d595e453 100644 --- a/src/Generator.c +++ b/src/Generator.c @@ -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;