mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 13:37:43 -05:00
Explicitly call Path.normalize on Platform paths, fixing #212
Signed-off-by: Max <maxh2709@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ public final class Platform {
|
||||
/**
|
||||
* Gets the root directory for the current instance of Minecraft.
|
||||
* <p>
|
||||
* The returned path is guaranteed to be <b>absolute</b>.
|
||||
* The returned path is guaranteed to be <b>absolute</b> and <b>normalized</b>.
|
||||
*/
|
||||
@ExpectPlatform
|
||||
public static Path getGameFolder() {
|
||||
@@ -75,7 +75,7 @@ public final class Platform {
|
||||
/**
|
||||
* Gets the main <code>config</code> folder for the current instance of Minecraft.
|
||||
* <p>
|
||||
* The returned path is guaranteed to be <b>absolute</b>.
|
||||
* The returned path is guaranteed to be <b>absolute</b> and <b>normalized</b>.
|
||||
*/
|
||||
@ExpectPlatform
|
||||
public static Path getConfigFolder() {
|
||||
@@ -85,7 +85,7 @@ public final class Platform {
|
||||
/**
|
||||
* Gets the <code>mods</code> folder of the current instance of Minecraft.
|
||||
* <p>
|
||||
* The returned path is guaranteed to be <b>absolute</b>.
|
||||
* The returned path is guaranteed to be <b>absolute</b> and <b>normalized</b>.
|
||||
*/
|
||||
@ExpectPlatform
|
||||
public static Path getModsFolder() {
|
||||
|
||||
Reference in New Issue
Block a user