mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-26 15:29:26 -09:00
Update patches.js
This commit is contained in:
parent
af31792012
commit
d626070156
15
patches.js
15
patches.js
@ -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;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user