Skip to content

Just register in-place instead of passing in a mod instance#50

Merged
okx-code merged 1 commit intookx-code:masterfrom
Protonull:do-not-pass-in-mod-to-self-register
Feb 5, 2026
Merged

Just register in-place instead of passing in a mod instance#50
okx-code merged 1 commit intookx-code:masterfrom
Protonull:do-not-pass-in-mod-to-self-register

Conversation

@Protonull
Copy link
Copy Markdown
Contributor

Currently, you have to pass-in an instance of AbstractCivModernMod into the macro constructors, which use it to register themselves onto the EventBus. This flips it around: the registration is done in AbstractCivModernMod's enable method, which reduces indirection and constructor complexity.

@okx-code okx-code merged commit 5e11a63 into okx-code:master Feb 5, 2026
@Protonull Protonull deleted the do-not-pass-in-mod-to-self-register branch February 5, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants