From 5280806f45bd572354a6e784dc5d804724850c12 Mon Sep 17 00:00:00 2001 From: gegy1000 Date: Mon, 14 May 2018 16:13:20 +0200 Subject: [PATCH] Fix VSCode resource configuration --- .../java/net/fabricmc/loom/task/GenVSCodeProjectTask.java | 4 ++-- src/main/java/net/fabricmc/loom/task/RunClientTask.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java b/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java index b979058..bc030d9 100644 --- a/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java +++ b/src/main/java/net/fabricmc/loom/task/GenVSCodeProjectTask.java @@ -67,9 +67,9 @@ public class GenVSCodeProjectTask extends DefaultTask { JsonObject jsonObject = new JsonObject(); JsonArray jsonArray = new JsonArray(); jsonArray.add("src/main/java"); - jsonArray.add("src/main/resorces"); + jsonArray.add("src/main/resources"); jsonArray.add("src/test/java"); - jsonArray.add("src/test/resorces"); + jsonArray.add("src/test/resources"); jsonObject.add("sourcePath", jsonArray); JsonElement element = new JsonPrimitive(classPathFile.getName()); jsonObject.add("classPathFile", element); diff --git a/src/main/java/net/fabricmc/loom/task/RunClientTask.java b/src/main/java/net/fabricmc/loom/task/RunClientTask.java index 02e4e17..a74f1d7 100644 --- a/src/main/java/net/fabricmc/loom/task/RunClientTask.java +++ b/src/main/java/net/fabricmc/loom/task/RunClientTask.java @@ -46,7 +46,7 @@ public class RunClientTask extends JavaExec { try { version = gson.fromJson(new FileReader(Constants.MINECRAFT_JSON.get(extension)), Version.class); } catch (FileNotFoundException e) { - e.printStackTrace(); + getLogger().error("Failed to retrieve version from minecraft json", e); } List libs = new ArrayList<>();