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

fix: circular dependency with new facet update priority #42

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

naalit
Copy link
Contributor

@naalit naalit commented Aug 8, 2021

This fixes the circular dependency which is recognized by MovingBlocks/Terasology#4833, which is the only change needed to make it work again. However, eventually it'd probably be a good idea to add explicit priorities to other CoreWorlds facet providers to make it more deterministic.

@Facet(value = ElevationFacet.class, border = @FacetBorder(sides = SpawnPlateauProvider.OUTER_RADIUS)),
@Facet(SurfaceRoughnessFacet.class)
})
}, priority = UpdatePriority.PRIORITY_REQUIRES - 10)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, scheduling the update after other facet providers require it sounds odd - I hope that can be fixed when giving the other providers better priorities.

@skaldarnar skaldarnar added Type: Chore Request for or implementation of maintenance changes Type: Bug Issues reporting and PRs fixing problems labels Aug 10, 2021
@skaldarnar skaldarnar merged commit 02a4cb2 into develop Aug 10, 2021
@skaldarnar skaldarnar deleted the fix/facet-update-priority branch August 10, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues reporting and PRs fixing problems Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants