Фикс путей к profiles

This commit is contained in:
Gravit 2018-09-19 19:45:31 +07:00
parent 324ab21d35
commit 2658c8a4ca

View file

@ -55,7 +55,7 @@ public void invoke(String... args) throws IOException, CommandException {
// Create profile file // Create profile file
LogHelper.subInfo("Creaing profile file: '%s'", dirName); LogHelper.subInfo("Creaing profile file: '%s'", dirName);
ClientProfile client; ClientProfile client;
String profilePath = String.format("launchserver/defaults/profile%s.cfg", version.name); String profilePath = String.format("ru/gravit/launchserver/defaults/profile%s.cfg", version.name);
try (BufferedReader reader = IOHelper.newReader(IOHelper.getResourceURL(profilePath))) { try (BufferedReader reader = IOHelper.newReader(IOHelper.getResourceURL(profilePath))) {
client = new ClientProfile(TextConfigReader.read(reader, false)); client = new ClientProfile(TextConfigReader.read(reader, false));
} }