mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
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:
commit
008262acac
@ -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;
|
||||
@ -522,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user