Update patches.js

This commit is contained in:
Murturtle 2024-10-02 01:30:44 -07:00 committed by GitHub
parent f4eae3baf1
commit 563b85e937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
})