Skip to content

Add ModInterop for adding ignored anchor fields#53

Merged
aonkeeper4 merged 5 commits intodevfrom
aonkeeper4/ignored-anchor-modinterop
Mar 17, 2026
Merged

Add ModInterop for adding ignored anchor fields#53
aonkeeper4 merged 5 commits intodevfrom
aonkeeper4/ignored-anchor-modinterop

Conversation

@aonkeeper4
Copy link

@aonkeeper4 aonkeeper4 commented Mar 16, 2026

Currently, entity containers check against every field in all base classes of a contained entity for "anchors" (fields which happen to have the same value as the entity's Position) which it assumes are meant to always hold the Position of the entity, and will update them accordingly. This is obviously not always the case, so this PR adds ModInterop to support excluding fields from being anchors. The current implementation respects inheritance, so excluding a field on a base class will also automatically exclude it on any derived classes.

@aonkeeper4 aonkeeper4 merged commit 50d98e9 into dev Mar 17, 2026
1 check passed
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