From 563b85e937c9ce83301a83146db696ce8374a48a Mon Sep 17 00:00:00 2001 From: Murturtle <97775022+Murturtle@users.noreply.github.com> Date: Wed, 2 Oct 2024 01:30:44 -0700 Subject: [PATCH] Update patches.js --- patches.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/patches.js b/patches.js index 06ee7c6..b8178f7 100644 --- a/patches.js +++ b/patches.js @@ -27,12 +27,11 @@ class PatchesRegistry { PatchesRegistry.regSpecialEvent("render"); PatchesRegistry.addPatch(function (input) { var output = input.replaceAll( - /continue main;\s+?}\s+?if\s?\(!\$this.\$renderHand\)/gm + /\$tmp = \$entity.\$getEyeHeight\(\);\s+?if \(\$rt_suspending\(\)\) {/gm , -`continue main; - } +`$tmp = $entity.$getEyeHeight(); ModAPI.events.callEvent("render",{partialTicks:$partialTicks}) - if (!$this.$renderHand)` + if ($rt_suspending()) {` ); return output; })