monkeypatches-0.6.0.jar
Curse Maven Snippet
What's new
Added
- Farmers Delight tag load-order fix
- ModTagsMixin: Repairs deprecated top-level tag references in
vectorwing.farmersdelight.common.tag.ModTagsthat capturenulldue to a class-init re-entry race - Resolves occasional
NullPointerExceptionat random tick when downstream addons callBlockState.is(ModTags.X)on a deprecated outer reference (e.g.MUSHROOM_COLONY_GROWABLE_ON) - Downstream symptom report: FungiDelight #8 (https://github.com/MehdiNoui/FungiDelight/issues/8)
- Upstream fix: FD commit
5f84f22(slated for FD 1.3.2) - Only loads for Farmers Delight
[1.3.1, 1.3.2)— 1.3.0 lacks the deprecated outer fields and 1.3.2+ contains the upstream fix - No configuration option available - patch runs during early class loading before config system initializes
- ModTagsMixin: Repairs deprecated top-level tag references in
Technical Details
@InjectatRETURNofModTags.<clinit>; by that point the inner classes (Blocks,Items,EntityTypes) are fully initialized@Mutable @Shadowdeclarations removefinalon each of the 32 deprecated outer fields so they can be reassigned from outside<clinit>- Repair only reassigns fields that are currently
null, leaving correctly-initialized fields untouched - New
TagKeyinstances are constructed with the samefarmersdelight:<path>resource location as the inner-class fields;TagKeyuses value equality, so reconstructed keys are interchangeable with the originals
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

