Merge pull request #990 from yeti0904/master

make the generator not plant flowers when game functionality is below version 0.0.23a
This commit is contained in:
UnknownShadow200 2023-01-22 00:03:43 +11:00 committed by GitHub
commit 008262acac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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