mirror of https://github.com/cabaletta/baritone
move mappings folder to better location and have it autocreate
This commit is contained in:
parent
2c3f352d0d
commit
9a7b07befc
|
@ -174,7 +174,7 @@ repositories {
|
|||
dependencies {
|
||||
if (getProject().hasProperty("baritone.fabric_build")) {
|
||||
minecraft "com.mojang:minecraft:1.15.2"
|
||||
mappings fileTree(dir: "volderyarn", include: "**.jar")
|
||||
mappings fileTree(dir: "./build/volderyarn", include: "**.jar")
|
||||
modImplementation "net.fabricmc:fabric-loader:0.9.1+build.205"
|
||||
|
||||
// this makes it compile with the forge tweak stuff
|
||||
|
|
|
@ -31,7 +31,7 @@ import java.util.zip.ZipOutputStream;
|
|||
* @Author Wagyourtail
|
||||
*/
|
||||
public class CreateVolderYarn {
|
||||
public static String VOLDERYARNFOLDER = "./volderyarn/";
|
||||
public static String VOLDERYARNFOLDER = "./build/volderyarn/";
|
||||
public static String VOLDERYARN = "volderyarn-%s-%s-%s.jar";
|
||||
|
||||
public static void genMappings(String mcVersion, Map<String, String> mcpVersion) throws IOException {
|
||||
|
@ -56,6 +56,7 @@ public class CreateVolderYarn {
|
|||
}
|
||||
|
||||
File outputFolder = new File(VOLDERYARNFOLDER);
|
||||
if (!outputFolder.exists() && !outputFolder.mkdirs()) throw new RuntimeException("Failed to create dir for volderyarn mappings.");
|
||||
|
||||
for (File f : outputFolder.listFiles()) {
|
||||
if (!f.isDirectory()) f.delete();
|
||||
|
|
Loading…
Reference in New Issue