mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-24 12:16:28 +01:00
[Creator] Add Pack.getModsDir().
This commit is contained in:
parent
4364d1f709
commit
891a1d6e8a
@ -9,7 +9,6 @@ package com.skcraft.launcher.creator.model.creator;
|
|||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.skcraft.launcher.builder.BuilderConfig;
|
import com.skcraft.launcher.builder.BuilderConfig;
|
||||||
import com.skcraft.launcher.builder.BuilderOptions;
|
import com.skcraft.launcher.builder.BuilderOptions;
|
||||||
import com.skcraft.launcher.creator.model.creator.Workspace;
|
|
||||||
import com.skcraft.launcher.persistence.Persistence;
|
import com.skcraft.launcher.persistence.Persistence;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@ -42,6 +41,11 @@ public class Pack {
|
|||||||
return new File(getDirectory(), "src");
|
return new File(getDirectory(), "src");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
public File getModsDir() {
|
||||||
|
return new File(getSourceDir(), "mods");
|
||||||
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public File getConfigFile() {
|
public File getConfigFile() {
|
||||||
return new File(getDirectory(), BuilderOptions.DEFAULT_CONFIG_FILENAME);
|
return new File(getDirectory(), BuilderOptions.DEFAULT_CONFIG_FILENAME);
|
||||||
|
Loading…
Reference in New Issue
Block a user