diff --git a/src/main/java/ciomek/quetzal/commands/HomeCommand.java b/src/main/java/ciomek/quetzal/commands/HomeCommand.java index 495016a..42fd513 100644 --- a/src/main/java/ciomek/quetzal/commands/HomeCommand.java +++ b/src/main/java/ciomek/quetzal/commands/HomeCommand.java @@ -5,6 +5,7 @@ import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.builder.ArgumentBuilderLiteral; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.core.entity.player.Player; import net.minecraft.core.net.command.CommandManager; import net.minecraft.core.net.command.CommandSource; @@ -22,7 +23,8 @@ import java.util.Map; public class HomeCommand implements CommandManager.CommandRegistry, ModInitializer { private static final Map homes = new HashMap<>(); private static final Gson gson = new Gson(); - private static final File homesFile = new File("homes.json"); + private static final File homesFile = + new File(FabricLoader.getInstance().getConfigDir().toFile(), "homes.json"); @Override public void onInitialize() {