promotional bannermobile promotional banner

Monkey Patches

A collection of hacky patches to fix bugs in other mods, especially bugs that were fixed in unreleased versions of those mods.

File Details

monkeypatches-0.4.3.jar

  • R
  • Aug 12, 2025
  • 51.41 KB
  • 18.4K
  • 1.21.1
  • NeoForge

File Name

monkeypatches-0.4.3.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:monkeypatches-1303058:6877256"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Added

  • JustEnoughResources GH547 patch for biome helper compatibility
    • BiomeHelperMixin: Fixes biome lookup and listing in JER for NeoForge 1.21+ by updating registry access
    • Prevents crashes and missing JER tabs when using mods with custom biomes like Vanilla Backport
    • Updates three critical methods: getAllBiomes(), getBiome(), and getBiomes() to use modern registry access
    • Only loads when JustEnoughResources mod is present (no version restrictions needed)

Technical Details

  • Replaces legacy biome registry access with level.registryAccess().registry(Registries.BIOME)
  • Includes comprehensive null safety checks for level and registry availability
  • Uses @Inject mixins to replace method implementations while preserving original behavior when disabled
  • Configuration option: patches.jeresources.gh547_enabled (default: true)