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

  • R
  • Dec 14, 2025
  • 54.41 KB
  • 55.4K
  • 1.21.1
  • NeoForge

File Name

monkeypatches-0.5.0.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

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

Learn more about Curse Maven

Added

  • Copper Age Backport GH48 patch for copper armor durability
    • ModItemsMixin: Fixes copper armor having infinite durability by adding explicit durability values
    • Adds durability to helmet, chestplate, leggings, and boots using durability multiplier of 11
    • Only loads for Copper Age Backport versions <=0.1.4 (fix should be in the next release)
    • No configuration option available - patch runs during early class loading before config system initializes

Fixed

  • KubeJS GH972 patches now include version predicates to prevent loading on fixed versions
    • ServerScriptManagerMixin and KubeJSModEventHandlerMixin now only apply to KubeJS versions <2101.7.2
    • Resolves crash when using KubeJS 2101.7.2+ which includes the native fix
    • Fixes "Critical injection failure" error when mixins attempt to apply to already-fixed code
    • See issue #3 for details

Technical Details

  • Uses @Redirect to intercept stacksTo() calls in specific lambda methods during armor registration
  • Targets lambda$register$74 (helmet), lambda$register$75 (chestplate), lambda$register$76 (leggings), lambda$register$77 (boots)
  • Chains durability() call onto properties builder: props.stacksTo(n).durability(type.getDurability(11))
  • Version predicate [,0.1.4] ensures patch doesn't conflict with upstream fix in newer releases
  • KubeJS GH972 mixins now use versionPredicates = "[,2101.7.2)" to prevent application on fixed versions