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

BattleTowersConfig: Use platform-independent paths #1

Merged
merged 1 commit into from
Mar 25, 2019
Merged

BattleTowersConfig: Use platform-independent paths #1

merged 1 commit into from
Mar 25, 2019

Conversation

doublej472
Copy link
Contributor

On Linux \ doesn't descend into directories, and in this case it creates big folder and file names like .minecraft\config\battle-towers and .minecraft\config\battle-towers\battle-towers.json in the user.dir directory.

I think using / should also work on windows and mac. As an added bonus, you don't have to escape it!

Tested and working on my (Linux) machine

On Linux `\` doesn't descend into directories, and in this case it creates big folder and file names like `.minecraft\config\battle-towers` and `.minecraft\config\battle-towers\battle-towers.json` in the `user.dir` directory.

I think using `/` should also work on windows and mac. As an added bonus, you don't have to escape it!

Tested and working on my (Linux) machine
@Draylar Draylar merged commit 3cab1f1 into Draylar:master Mar 25, 2019
@Draylar
Copy link
Owner

Draylar commented Mar 25, 2019

Thanks! Looks like I should update my other config-based mods in a similar fashion now :)
Released as 1.0.2 for 19w12b.

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.

None yet

2 participants