Closed Sir-Will closed 4 years ago
@nallar any chance you can take a look at this?
What's the patch XML?
<mods>
<Hwyla>
<class id="mcp.mobius.waila.network.MessageRequestTile$Handler">
<insertCodeBefore code="{
System.out.println($2.getServerHandler());
}">onMessage</insertCodeBefore>
</class>
</Hwyla>
</mods>
Sorry about the huge delay here. Deprecating the old XML patch format now, too much trouble with it
We will retain support for custom patches in a folder in the next release, but they'll be custom mixin classes instead. #21
When is that next release planned? Are there examples of patches in mixin class format?
When it's done. Don't have a good estimate :c
Yes, at the moment there are examples in a few places. The most complicated ones are probably in the current (broken, WIP) version of TickThreading. There are also a few simple ones as test files in the Mixin repo.
Trying to use
getServerHandler()
in patches throws the error below. I got this issue in 1.10 and 1.12 and with multiple mods.(Using the embedded version in TickProfiler)