From 891a1d6e8a757a0eae65d0681c00fed68b49ba9c Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 27 Jul 2015 19:52:40 -0700 Subject: [PATCH] [Creator] Add Pack.getModsDir(). --- .../com/skcraft/launcher/creator/model/creator/Pack.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/creator-tools/src/main/java/com/skcraft/launcher/creator/model/creator/Pack.java b/creator-tools/src/main/java/com/skcraft/launcher/creator/model/creator/Pack.java index 035316a..eabe625 100644 --- a/creator-tools/src/main/java/com/skcraft/launcher/creator/model/creator/Pack.java +++ b/creator-tools/src/main/java/com/skcraft/launcher/creator/model/creator/Pack.java @@ -9,7 +9,6 @@ package com.skcraft.launcher.creator.model.creator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.skcraft.launcher.builder.BuilderConfig; import com.skcraft.launcher.builder.BuilderOptions; -import com.skcraft.launcher.creator.model.creator.Workspace; import com.skcraft.launcher.persistence.Persistence; import lombok.Data; @@ -42,6 +41,11 @@ public class Pack { return new File(getDirectory(), "src"); } + @JsonIgnore + public File getModsDir() { + return new File(getSourceDir(), "mods"); + } + @JsonIgnore public File getConfigFile() { return new File(getDirectory(), BuilderOptions.DEFAULT_CONFIG_FILENAME);