Skip to content

Conversation

@SokyranTheDragon
Copy link
Member

Whenever we patch methods for SyncAction, it would cause any non-vanilla types to attempt to load their static data. This caused them to load resources like graphics, which failed and caused issues with those mods.

I've fixed it by delaying patching of any non-vanilla methods whose declaring types have StaticConstructorOnStartup attribute on them.

I've decided to let unaffected methods be patched early in case patching those early was by design due to anything I may be unaware of.

Currently, this should fix issues with Moving Bases from Vanilla Expanded Framework.

Whenever we patch methods for `SyncAction`, it would cause any non-vanilla types to attempt to load their static data. This caused them to load resources like graphics, which failed and caused issues with those mods.

I've fixed it by delaying patching of any non-vanilla methods whose declaring types have `StaticConstructorOnStartup` attribute on them.

I've decided to let unaffected methods be patched early in case patching those early was by design due to anything I may be unaware of.

Currently, this should fix issues with Moving Bases from Vanilla Expanded Framework.
@SokyranTheDragon SokyranTheDragon added fix Fixes for a bug or desync. 1.5 Fixes or bugs relating to 1.5 (Not Anomaly). labels Apr 1, 2025
@notfood notfood changed the base branch from master to dev June 28, 2025 16:35
@notfood notfood added the invalid This doesn't seem right. label Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5 Fixes or bugs relating to 1.5 (Not Anomaly). fix Fixes for a bug or desync. invalid This doesn't seem right.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants