
Serene Seasons X Distant Horizons
Fixes LOD color mismatches between Serene Seasons and Distant Horizons. Keeps DH's color caches in sync with seasonal changes so LODs show the correct foliage and grass colors.
2.7K
11
Serene Seasons X Distant Horizons 1.0.3
Release1 нед. назад
Список изменений
Changelog
1.0.3 - Architecture refactor + delayed refresh scheduler
DHCompat refactor
- Replaced reflection-based level access with DH public core interfaces:
ILevelWrapper.getDhLevel()replaces reflectedClientLevelWrapper.dhLevelfieldIClientLevelWrapper.clearBlockColorCache()replaces reflected call on the concrete wrapperDhSectionPos.encode(byte, int, int)called directly as a public static method
- Reflection is now reserved only for truly private internals:
AbstractDhTintGetter.COLOR_BY_BLOCK_BIOME_PAIR(static tint cache)AbstractDhTintGetter.BIOME_BY_RESOURCE_STRING(static biome cache, newly cleared)DhClientLevel.reloadPos(long)(soft-reload hook)
Delayed refresh scheduler
- Introduced a generation-token scheduler to prevent stale delayed jobs from firing after a superseding event arrives.
- Live season change: caches cleared immediately, then a single delayed visible refresh fires after 12 ticks (Path C) or 35 ticks (Path B).
- World load / rejoin: caches cleared immediately, then a single delayed refresh fires after 50 ticks (Path C) or 35 ticks (Path B). No immediate GPU work on load.
- Caches are cleared a second time immediately before the delayed refresh executes, to flush any state accumulated during the wait window.
Cache clearing
- Added
BIOME_BY_RESOURCE_STRINGclearing alongside the existing tint cache clear. Both fields are resolved fromAbstractDhTintGetterat startup and cleared on every refresh cycle.
SeasonMetaTexture
- Added
SeasonMetaTexturesingleton: registers two 1×1 textures (ssdh:season_metaandssdh:season_phase) with the client texture manager. - Updated every client tick by SSCompat; zeroed on world exit.
- Intended for custom shaders or resource packs that want to sample the current season and phase without parsing text.
Файлы
ssdh-1.0.3.jar(327.79 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.3
Загрузчики
Fabric
Версии игры
1.21.1–1.21.11
Загрузок
297
Дата публикации
1 нед. назад
