From 1e1c0be950fcb2b05ab551a0088ad69af55e08ee Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Fri, 4 Oct 2024 15:07:21 +0800 Subject: [PATCH] xpspawner --- patches.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patches.js b/patches.js index b8178f7..06ee7c6 100644 --- a/patches.js +++ b/patches.js @@ -27,11 +27,12 @@ class PatchesRegistry { PatchesRegistry.regSpecialEvent("render"); PatchesRegistry.addPatch(function (input) { var output = input.replaceAll( - /\$tmp = \$entity.\$getEyeHeight\(\);\s+?if \(\$rt_suspending\(\)\) {/gm + /continue main;\s+?}\s+?if\s?\(!\$this.\$renderHand\)/gm , -`$tmp = $entity.$getEyeHeight(); +`continue main; + } ModAPI.events.callEvent("render",{partialTicks:$partialTicks}) - if ($rt_suspending()) {` + if (!$this.$renderHand)` ); return output; })