1.20.1-forge-enlightendbugfix-1.2.1
Curse Maven Snippet
What's new
1.2.1
- Dynamic Random Loop-Bound & Allocation Fixes:
- Fixed 6 worldgen and particle procedures (
DrawOozeCircleProcedure,FreezingTotemClientDisplayRandomTickProcedure,PlanetaryAirBlockAddedProcedure,PlanterySystemAirBlockAddedProcedure,PlantOozePlantsProcedure, andSpreadFreezingPlantsProcedure) that previously re-evaluatedMth.nextInt(RandomSource.create(), min, max)on everyfor-loop iteration, skewing counts and allocating newRandomSourceinstances per check. - Hoisted loop upper bounds prior to iteration, reused level
RandomSource, switched asteroid/giant template placement inPlanetaryAirBlockAddedProcedurefromgetOrCreate(...)to safeget(...)lookups, clamped planetary system generation height to world build limits, and eliminated dozens of per-tick anonymous-class allocations inFreezingTotemClientDisplayRandomTickProcedure.
- Fixed 6 worldgen and particle procedures (
版本 1.2.1
- 动态随机循环边界与高频分配修复:
- 修复 6 处世界生成与粒子过程(
DrawOozeCircle、FreezingTotemClientDisplayRandomTick、PlanetaryAirBlockAdded、PlanterySystemAirBlockAdded、PlantOozePlants、SpreadFreezingPlants)在for循环条件中每轮重算Mth.nextInt(RandomSource.create(), min, max)导致数量分布失真且反复创建RandomSource的缺陷。 - 将循环上限全部前置求值并复用世界随机源,将
PlanetaryAirBlockAddedProcedure的星体模板加载改为安全的StructureTemplateManager#get,为行星系生成补充世界建筑高度限幅,并消除FreezingTotemClientDisplayRandomTickProcedure每次随机刻产生的数十个匿名类临时分配。
- 修复 6 处世界生成与粒子过程(
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

