Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Bugfix/mod init #173

Merged
merged 7 commits into from
Aug 16, 2020
Merged

Bugfix/mod init #173

merged 7 commits into from
Aug 16, 2020

Conversation

rikka0w0
Copy link
Contributor

@rikka0w0 rikka0w0 commented Aug 8, 2020

Fix the issue mentioned in #111 and #119. Move the Forge mod construction code to the correct place. Fabric mods are constructed much earlier, fields required by some Forge mods aren't populated yet. For example, the custom model loader requires this to work. This pr also fix some issue in FMLServerStartingEvent and make it accommodate the new mod loading procedure.

@rikka0w0 rikka0w0 linked an issue Aug 8, 2020 that may be closed by this pull request
@rikka0w0 rikka0w0 marked this pull request as draft August 9, 2020 01:42
@rikka0w0 rikka0w0 marked this pull request as ready for review August 9, 2020 09:53
@@ -102,6 +99,7 @@ public void onInitialize() {
ModLoadingContext.get().setActiveContainer(container, new FMLJavaModLoadingContext(container));

try {
// container.setMod()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this meant to be uncommnented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a reminder. We are supposed to record the mod instance here, but currently the interface exposed by our patcher does not return such instance. We can only have this after patcher is updated.
#119
PatchworkMC/patchwork-patcher#53

Copy link
Member

@TheGlitch76 TheGlitch76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little odd but it's an improvement over what we had.
Thanks for this!

@TheGlitch76 TheGlitch76 merged commit a86a132 into master Aug 16, 2020
@TheGlitch76 TheGlitch76 deleted the bugfix/mod_init branch August 16, 2020 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a late entrypoint for initialization
2 participants