Skip to content

Reorder PatchEntities call in AssetsLoaded method#30

Open
AdamChirnside wants to merge 1 commit into
Xandu93:masterfrom
AdamChirnside:patch-1
Open

Reorder PatchEntities call in AssetsLoaded method#30
AdamChirnside wants to merge 1 commit into
Xandu93:masterfrom
AdamChirnside:patch-1

Conversation

@AdamChirnside
Copy link
Copy Markdown

Moved PatchEntities() call to the end of AssetsLoaded method. added null check to PatchEntities and skip to next valid entity

Unable to test but this should cut down on crashes with unreferenced entities appearing in Api.World.EntityTypes

Moved PatchEntities() call to the end of AssetsLoaded method.
added null check to PatchEntities and skip to next valid entity

Unable to test but this should cut down on crashes with unreferenced entities appearing in Api.World.EntityTypes
@AdamChirnside
Copy link
Copy Markdown
Author

I was able to test this last night and although it doesn't stop the crash with feverstone horses as hoped, it does help by running the other code first, fixing All-Rounder functionality even when PatchEntities() crashes.

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