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

Fixes #84 + Fixes #110 #111

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Fixes #84 + Fixes #110 #111

merged 1 commit into from
Feb 11, 2024

Conversation

Rongmario
Copy link
Member

The run folder was being set as the source for the ScriptModContainer::source, which introduced the .minecraft folder as a classpath for the class loader.

AgriCraft uses the org.reflections library which compiles all the paths and searches resources through all of them, the source that GroovyScript puts in comes up first, leading to a relative path of config/agricraft/json/defaults when AgriCraft always expects it in its own jar which is just json/defaults, hence every time the path is being resolved, it appends config/agricraft/ before it.

@brachy84 brachy84 merged commit e669145 into master Feb 11, 2024
1 check passed
@brachy84 brachy84 deleted the fix/setting_source_to_run_folder branch February 11, 2024 07:37
@brachy84 brachy84 added the bug Something isn't working label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants