diff --git a/biomes.h b/biomes.h index 0150548..eaf85ff 100644 --- a/biomes.h +++ b/biomes.h @@ -33,7 +33,7 @@ enum MCVersion MC_1_19_4, MC_1_19 = MC_1_19_4, MC_1_20_6, MC_1_20 = MC_1_20_6, MC_1_21_1, - MC_1_21_2, // = 1.21.3 + MC_1_21_3, MC_1_21_WD, // Winter Drop, version TBA MC_1_21 = MC_1_21_WD, MC_NEWEST = MC_1_21, diff --git a/finders.c b/finders.c index b1a7a08..783d5ec 100644 --- a/finders.c +++ b/finders.c @@ -967,7 +967,7 @@ uint64_t calcFitness(const Generator *g, int x, int z) // apply dependence on distance from origin a = (int64_t)x*x; b = (int64_t)z*z; - if (g->mc < MC_1_21_2) + if (g->mc <= MC_1_21_1) { double s = (double)(a + b) / (2500 * 2500); q = (uint64_t)(s*s * 1e8) + ds; @@ -5508,7 +5508,7 @@ const int *getBiomeParaLimits(int mc, int id) if (mc <= MC_1_17) return NULL; int i; - if (mc > MC_1_21_2) + if (mc > MC_1_21_3) { for (i = 0; g_biome_para_range_21wd_diff[i][0] != -1; i++) { diff --git a/util.c b/util.c index b7c6685..18fa7a7 100644 --- a/util.c +++ b/util.c @@ -74,7 +74,7 @@ const char* mc2str(int mc) case MC_1_19: return "1.19"; break; case MC_1_20: return "1.20"; break; case MC_1_21_1: return "1.21.1"; break; - case MC_1_21_2: return "1.21.2"; break; + case MC_1_21_3: return "1.21.3"; break; case MC_1_21_WD: return "1.21 WD"; break; default: return "?"; } @@ -84,7 +84,8 @@ int str2mc(const char *s) { if (!strcmp(s, "1.21")) return MC_1_21; if (!strcmp(s, "1.21 WD")) return MC_1_21_WD; - if (!strcmp(s, "1.21.2")) return MC_1_21_2; + if (!strcmp(s, "1.21.3")) return MC_1_21_3; + if (!strcmp(s, "1.21.2")) return MC_1_21_3; // backwards compatibility if (!strcmp(s, "1.21.1")) return MC_1_21_1; if (!strcmp(s, "1.20")) return MC_1_20; if (!strcmp(s, "1.20.6")) return MC_1_20_6;