From d62607015626dc3ea4be8d29c230ce8a3f3ecc52 Mon Sep 17 00:00:00 2001 From: Murturtle <97775022+Murturtle@users.noreply.github.com> Date: Wed, 2 Oct 2024 00:36:27 -0700 Subject: [PATCH] Update patches.js --- patches.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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; +})