Skip to content

LifecycledResourceManagerImplMixin: Verify PatchingContext is loaded before patching resources#4

Open
unilock wants to merge 1 commit into
MattiDragon:1.21.1/rewritefrom
unilock:1.21.1/rewrite
Open

LifecycledResourceManagerImplMixin: Verify PatchingContext is loaded before patching resources#4
unilock wants to merge 1 commit into
MattiDragon:1.21.1/rewritefrom
unilock:1.21.1/rewrite

Conversation

@unilock
Copy link
Copy Markdown

@unilock unilock commented Dec 22, 2025

As discussed in Discord, if LifecycledResourceManagerImplMixin.jsonpatcher$context has not yet been loaded when a mod tries to get a resource, this will return the resource(s) unpatched and log a warning instead of blowing up. Also decreases the priority of the mixin such that other mods can inject their resources first.

TODO: config option?

…before patching resources

Return unpatched resources and log a warning if not
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.

1 participant