diff --git a/patches.js b/patches.js index fb2ae98..06ee7c6 100644 --- a/patches.js +++ b/patches.js @@ -22,4 +22,17 @@ class PatchesRegistry { // PatchesRegistry.addPatch(function (input) { // var output = input; // return output; -// }) \ No newline at end of file +// }) + +PatchesRegistry.regSpecialEvent("render"); +PatchesRegistry.addPatch(function (input) { + var output = input.replaceAll( + /continue main;\s+?}\s+?if\s?\(!\$this.\$renderHand\)/gm + , +`continue main; + } + ModAPI.events.callEvent("render",{partialTicks:$partialTicks}) + if (!$this.$renderHand)` + ); + return output; +})