Renamed MC_1_21_2 to MC_1_21_3

This commit is contained in:
Cubitect 2024-11-10 13:21:31 +01:00
parent c3bbbdf544
commit e61f90580c
3 changed files with 6 additions and 5 deletions

View File

@ -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,

View File

@ -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++)
{

5
util.c
View File

@ -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;