Rebirth-of-the-Night / Quark

Small things, improving Minecraft without changing the core gameplay.
https://quark.vazkii.net
3 stars 8 forks source link

Don't load classes in the safe class writer (fixes #39 and #40) #41

Closed phantamanta44 closed 3 months ago

phantamanta44 commented 3 months ago

The class writer implementation used by Quark ASM tries to avoid initializing classes when loading them, but sometimes this is not sufficient to prevent re-entrance. This PR just replaces the safe class writer with a slightly improved version of the one I used in Tinkers' Evolution (under the JSON license), which avoids loading classes altogether. This should address both #39 and #40.