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

Refactor other mod id handling #2354

Merged
merged 9 commits into from Jan 31, 2024
Merged

Refactor other mod id handling #2354

merged 9 commits into from Jan 31, 2024

Conversation

serenibyss
Copy link
Member

Refactors isModLoaded() and getModItem() checks to a new consolidated system that should be much easier to manage and much less prone to merge conflicts, as well as a bit cleaner in code. Additionally caches mod loaded checks instead of rechecking each time

@serenibyss serenibyss added the type: refactor Suggestion to refactor a section of code label Jan 20, 2024
@serenibyss serenibyss requested a review from a team as a code owner January 20, 2024 23:43
@ALongStringOfNumbers
Copy link
Contributor

As a bonus, this rework could add checks for the various Forestry Modules and if they are enabled, so that it would be easier to solve #2328

@serenibyss serenibyss merged commit 826d589 into master Jan 31, 2024
3 checks passed
@serenibyss serenibyss deleted the sb-modid-cleanup branch January 31, 2024 03:24
serenibyss added a commit that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The game crashes at startup with Forestry if the MOD's module "Apiculture" is disabled
2 participants