Merge pull request #22 from Murturtle/patch-3

Update patches.js
This commit is contained in:
ZXMushroom63 2024-10-02 15:42:58 +08:00 committed by GitHub
commit 0dee4a29cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,4 +22,17 @@ class PatchesRegistry {
// PatchesRegistry.addPatch(function (input) {
// var output = input;
// return output;
// })
// })
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;
})