fix: plugin unable to load when server is starting

This commit is contained in:
coooookies 2022-05-12 03:17:44 +08:00
parent 3bb494d530
commit 7640a24273
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
<artifactId>Grasscutter-api</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/../Grasscutter/grasscutter-1.0.3-dev.jar</systemPath>
<systemPath>${basedir}/../Grasscutter/grasscutter-1.1.1-dev.jar</systemPath>
</dependency>
<dependency>

View File

@ -17,7 +17,7 @@ import io.github.gmw.config.MeaMailTemplate;
public class ConfigParser {
private MeaMailConfig config;
private ArrayList<MeaMailTemplate> templates;
private final String configPath = Grasscutter.getConfig().PLUGINS_FOLDER + "MeaMailPlus";
private final String configPath = Grasscutter.getConfig().folderStructure.plugins + "MeaMailPlus";
private final String templatePath = this.configPath + "/template";
private final File configFile = new File( this.configPath + "/config.json");
private static final Gson gson = new GsonBuilder().setPrettyPrinting().create();