From a491276cba419528e39373aa53899cca1f8fe38a Mon Sep 17 00:00:00 2001 From: yeti0904 Date: Sun, 8 Jan 2023 19:54:27 +0000 Subject: [PATCH 1/2] 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; From 1f4850158d93f495930920a23f40554291144128 Mon Sep 17 00:00:00 2001 From: yeti0904 Date: Sun, 8 Jan 2023 19:56:48 +0000 Subject: [PATCH 2/2] i forgor the mush rooms --- src/Generator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Generator.c b/src/Generator.c index 7d595e453..2bab70c23 100644 --- a/src/Generator.c +++ b/src/Generator.c @@ -527,6 +527,10 @@ static void NotchyGen_PlantFlowers(void) { } static void NotchyGen_PlantMushrooms(void) { + if (Game_Version.Version < VERSION_0023) { + return; + } + int numPatches, groundHeight; BlockRaw block; int patchX, patchY, patchZ;