promotional bannermobile promotional banner

Enlightend Bug Fixes

Lightweight bugfix, server crash & packet storm fix, Xaero map visibility, and modular tool compatibility addon for Enlightend.
Back to Files

1.20.1-forge-enlightendbugfix-1.2.1

File nameenlightendbugfix-1.20.1-forge-1.2.1.jar
Uploader
hp12138hp12138
Uploaded
Nov 27, 2026
Downloads
2
Size
340.7 KB
Mod Loaders
Forge
File ID
9844339
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:enlightend-bug-fixes-1832200:9844339")

Learn more about Curse Maven

What's new

1.2.1

  • Dynamic Random Loop-Bound & Allocation Fixes:
    • Fixed 6 worldgen and particle procedures (DrawOozeCircleProcedure, FreezingTotemClientDisplayRandomTickProcedure, PlanetaryAirBlockAddedProcedure, PlanterySystemAirBlockAddedProcedure, PlantOozePlantsProcedure, and SpreadFreezingPlantsProcedure) that previously re-evaluated Mth.nextInt(RandomSource.create(), min, max) on every for-loop iteration, skewing counts and allocating new RandomSource instances per check.
    • Hoisted loop upper bounds prior to iteration, reused level RandomSource, switched asteroid/giant template placement in PlanetaryAirBlockAddedProcedure from getOrCreate(...) to safe get(...) lookups, clamped planetary system generation height to world build limits, and eliminated dozens of per-tick anonymous-class allocations in FreezingTotemClientDisplayRandomTickProcedure.

版本 1.2.1

  • 动态随机循环边界与高频分配修复:
    • 修复 6 处世界生成与粒子过程(DrawOozeCircle、FreezingTotemClientDisplayRandomTick、PlanetaryAirBlockAdded、PlanterySystemAirBlockAdded、PlantOozePlants、SpreadFreezingPlants)在 for 循环条件中每轮重算 Mth.nextInt(RandomSource.create(), min, max) 导致数量分布失真且反复创建 RandomSource 的缺陷。
    • 将循环上限全部前置求值并复用世界随机源,将 PlanetaryAirBlockAddedProcedure 的星体模板加载改为安全的 StructureTemplateManager#get,为行星系生成补充世界建筑高度限幅,并消除 FreezingTotemClientDisplayRandomTickProcedure 每次随机刻产生的数十个匿名类临时分配。

This mod has no additional files