From 2584485efc73ac23cdaf8d2470d811a0b3d5d0aa Mon Sep 17 00:00:00 2001 From: Cubitect Date: Thu, 5 Jul 2018 21:05:34 +0100 Subject: [PATCH] fixed default of findBiomePosition --- finders.c | 8 ++++---- finders.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/finders.c b/finders.c index 530b87d..dedfbf0 100644 --- a/finders.c +++ b/finders.c @@ -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) { diff --git a/finders.h b/finders.h index 64289eb..df1faa1 100644 --- a/finders.h +++ b/finders.h @@ -8,7 +8,7 @@ #include -#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);