diff --git a/build.gradle b/build.gradle index 32b8e45..482fcab 100644 --- a/build.gradle +++ b/build.gradle @@ -112,12 +112,7 @@ configurations { } dependencies { - - - - - - + implementation sourceSets.doom.output } // This block of code expands all declared replace properties in the specified resource targets. @@ -177,7 +172,29 @@ sourceSets { main { java { // Include the default `src/main/java` and the additional `src/doom` folder - srcDirs = ['src/main/java', 'src/doom'] + srcDirs = ['src/main/java'] + } + } +} + +sourceSets { + doom { + java { + srcDirs = ['src/doom'] + } + resources { + srcDirs = ['src/doom/resources'] } } } + +neoForge { + addModdingDependenciesTo sourceSets.doom + + mods { + "${mod_id}" { + sourceSet sourceSets.main + sourceSet sourceSets.doom + } + } +} \ No newline at end of file diff --git a/src/main/java/com/portingdeadmods/doomstation/DSMain.java b/src/main/java/com/portingdeadmods/doomstation/DSMain.java index 995e3ac..9cc3bbd 100644 --- a/src/main/java/com/portingdeadmods/doomstation/DSMain.java +++ b/src/main/java/com/portingdeadmods/doomstation/DSMain.java @@ -17,12 +17,17 @@ public class DSMain public static final String MODID = "doomstation"; private static final Logger LOGGER = LogUtils.getLogger(); - String[] args = {"-iwad DOOMU.WAD"}; - public DSMain(IEventBus modEventBus, ModContainer modContainer) throws IOException { RegisterStuff.CREATIVE_MODE_TABS.register(modEventBus); RegisterStuff.ITEMS.register(modEventBus); - Engine.main(args); + new Thread(() -> { + try { + Engine.main(new String[]{}); + System.out.println("Engine started"); + } catch (IOException e) { + e.printStackTrace(); + } + }).start(); //modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC); } diff --git a/tranmap.dat b/tranmap.dat new file mode 100644 index 0000000..94afabd Binary files /dev/null and b/tranmap.dat differ