Quark

Quark

143M Downloads

Alpha: Mod compat is hard (constructor registration)

quat1024 opened this issue ยท 2 comments

commented

Currently there is no way to construct a QuarkBlock/ZetaBlock without also performing constructor registration. This causes trouble for mods wanting to add Quark compat that don't use Zeta.

It was easier to hack around in the AutoRegLib days but it's way harder to make a fake Zeta/ZetaModule instance, sometimes Quark.ZETA is hard coded, etc.

It might also be nice if the ZetaModule argument was nullable.

commented

Partially fixed by f95dad0 which added nullchecks to all the ZetaModule constructor parameters I could find. You should be able to pass null for the registry name & module to safely construct Quark blocks without registering them.

Obviously this hasn't been tested well on our side. Comment if we missed any or if there's more things that need to be made safe to use from addons.

commented

Haven't heard much yet!