mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-15 19:34:44 +00:00
move minecraft home path retrieval to separate util class
This commit is contained in:
5 files changed
+27
-10
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package com.falsepattern.lib.util;
|
||||
|
||||
import com.falsepattern.lib.StableAPI;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@StableAPI(since = "0.8.2")
|
||||
public class FileUtil {
|
||||
public static File getMinecraftHome() {
|
||||
return Launch.minecraftHome == null ? new File(".") : Launch.minecraftHome;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user