Skip to content

Commit

Permalink
Renamed MC_1_21_2 to MC_1_21_3
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubitect committed Nov 10, 2024
1 parent c3bbbdf commit e61f905
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion biomes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions finders.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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++)
{
Expand Down
5 changes: 3 additions & 2 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "?";
}
Expand All @@ -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;
Expand Down

0 comments on commit e61f905

Please sign in to comment.