From ab3578b84dd17413c47f4bfe1e32526a87e8c6cd Mon Sep 17 00:00:00 2001 From: programmerpony Date: Sun, 31 May 2020 12:50:35 -0400 Subject: [PATCH] Check home directory for Minecraft files on Linux --- .../java/net/minestom/server/registry/ResourceGatherer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/registry/ResourceGatherer.java b/src/main/java/net/minestom/server/registry/ResourceGatherer.java index 4cb626326..cd9c20583 100644 --- a/src/main/java/net/minestom/server/registry/ResourceGatherer.java +++ b/src/main/java/net/minestom/server/registry/ResourceGatherer.java @@ -165,6 +165,6 @@ public class ResourceGatherer { return new File(user + "/Library/Application Support/minecraft"); } - return new File("~/.minecraft"); + return new File(System.getProperty("user.home") + "/.minecraft"); } }