Seasons based on a calendar

This commit is contained in:
2026-10-09 22:09:21 -03:00
parent 4d5700f0bf
commit 7fe9c15b67
12 changed files with 88 additions and 33 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ export class Hud {
`Day ${day}`,
`${String(hour).padStart(2, "0")}:${String(minute).padStart(2, "0")}`,
biome === undefined ? "Unknown" : display_name(biome),
biome === undefined ? "Unknown" : capitalize(biome_season(biome)),
biome === undefined ? "Unknown" : capitalize(biome_season(biome, client.level.time)),
];
const padding = INFO_PADDING * GUI_SCALE;
+1 -1
View File
@@ -93,7 +93,7 @@ const rules_world: SharedWorld = {
biome_at: (x, z) => client?.level.biome_at(Math.floor(x), Math.floor(z)),
season_at(x, z) {
const biome = this.biome_at(x, z);
return biome === undefined ? undefined : biome_season(biome);
return biome === undefined ? undefined : biome_season(biome, client!.level.time);
},
};