Update patches.js

This commit is contained in:
Murturtle 2024-10-02 00:36:27 -07:00 committed by GitHub
parent af31792012
commit d626070156
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,3 +23,16 @@ class PatchesRegistry {
// var output = input; // var output = input;
// return output; // 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;
})