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.
Back to Files

monkeypatches-0.4.2.jar

File namemonkeypatches-0.4.2.jar
Uploaded
Aug 3, 2025
Downloads
38
Size
48.0 KB
Mod Loaders
NeoForge
File ID
6844866
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:monkeypatches-1303058:6844866"

Learn more about Curse Maven

What's new

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

This mod has no additional files