Sleepium 1.4.17 for 1.20.1 (Forge)
Curse Maven Snippet
What's new
- Fixed:
NoiseOnce(andColumnMemo) failed to rebuildDensityFunctionsrecords when other mods added cache fields to them (Bons and Furious, FastChunkGen) (#19). Previously,fields()collected every non-static declared field of a record and looked up a constructor matching all of them, throwingNoSuchMethodExceptiononDensityFunctions$Ap2when mods added fields such asbyte bons$ztandint fastchunkgen$hashand causingNoiseOnceto leave the overworld router unoptimized. BothColumnMemoandNoiseOncenow resolve only canonical record component fields viaClass.getRecordComponents()(matching component/SRG names on 1.20.1 without callingRecordComponent.getAccessor(), with afinal-field type-order fallback). Both versions. - Verified with a foreign mixin adding
byte+intfields toDensityFunctions$Ap2:NoiseOncenow rewrites the router cleanly (1 repeatedcorner subtree,2 y-freecolumn subtrees), passes step-by-step world-generation exactness (genstep.py: 64/64 chunksEXACT per step), and recovers +13 % (1.20.1:212.9 -> 240.7 chunks/s) to +18-20 % (1.21.1:325.2 -> 389.6 chunks/s) chunk-generation speed.
This mod has no additional files