fixed default of findBiomePosition

This commit is contained in:
Cubitect 2018-07-05 21:05:34 +01:00
parent b8c55bb7bb
commit 2584485efc
2 changed files with 7 additions and 7 deletions

View File

@ -865,8 +865,8 @@ Pos findBiomePosition(
genArea(layer, map, x1, z1, width, height);
out.x = 0;
out.z = 0;
out.x = centerX;
out.z = centerZ;
found = 0;
for(i = 0; i < width*height; i++)
@ -955,8 +955,8 @@ void findStrongholds_pre19(LayerStack *g, int *cache, Pos *locations, int64_t wo
* cache : biome buffer, set to NULL for temporary allocation
* locations : output block positions for the 128 strongholds
* worldSeed : world seed used for the generator
* maxRadius : Stop searching if the radius exceeds this value. 0 to return all
* strongholds.
* maxRadius : Stop searching if the radius exceeds this value in meters. Set to
* 0 to return all strongholds.
*/
int findStrongholds(LayerStack *g, int *cache, Pos *locations, int64_t worldSeed, int maxRadius)
{

View File

@ -8,7 +8,7 @@
#include <stdlib.h>
#define THREADS 6
#define DEFAULT_THREADS 6
#define SEEDMAX (1LL << 48)
#define PI 3.141592653589793
@ -233,8 +233,8 @@ void findStrongholds_pre19(LayerStack *g, int *cache, Pos *locations, int64_t wo
* cache : biome buffer, set to NULL for temporary allocation
* locations : output block positions for the 128 strongholds
* worldSeed : world seed used for the generator
* maxRadius : Stop searching if the radius exceeds this value. 0 to return all
* strongholds.
* maxRadius : Stop searching if the radius exceeds this value in meters. Set to
* 0 to return all strongholds.
*/
int findStrongholds(LayerStack *g, int *cache, Pos *locations, int64_t worldSeed, int maxRadius);