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.2.jar

  • R
  • Aug 3, 2025
  • 48.03 KB
  • 34
  • 1.21.1
  • NeoForge

File Name

monkeypatches-0.4.2.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

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

Learn more about Curse Maven

Added

  • Rhino PR57 patch for object signature parsing in arrays
    • ClassFileWriterMixin: Fixes the sizeOfParameters method to properly parse object signatures in bytecode
    • Prevents parsing failures when object types appear within array signatures (e.g., [Ljava/lang/String;)
    • Overwrites the entire method with the fixed implementation from upstream PR
    • Only loads when Rhino mod is present (no configuration option due to early loading)

Technical Details

  • Fixes the 'L' case handling in signature parsing that was falling through to default
  • Adds proper semicolon detection and bounds checking for object type signatures
  • Uses @Overwrite mixin to replace the buggy method entirely