Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blacklist irregular entities from desync fix #369

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

jchung01
Copy link
Contributor

@jchung01 jchung01 commented Feb 5, 2024

Fixes #262 by ignoring entities that do not update prevPos. Assume these are entities that don't call Entity#onUpdate(). The main issue was that utGetDistanceSq() was reliant on those values being updated, which explains the weird behavior once the entities went far enough.

If you would like some reasoning for this assumption, specifically for Immersive Vehicles you can see here that the vehicles do not call super.onUpdate() or super.onEntityUpdate(), the latter of which normally updates prevPos in Entity.

Ignore entities that do not update prevPos. Assume these are entities that don't call Entity#onUpdate().

Related: ACGaming#262
@ACGaming ACGaming merged commit 392fca3 into ACGaming:main Feb 5, 2024
1 check passed
@jchung01 jchung01 deleted the desync-fix-compat branch February 6, 2024 02:13
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.

Incompatibility with Immersive Vehicles mod when Entity Desync fix is active
2 participants