diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 942cd58..609f3c9 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -102,6 +102,7 @@ configurations { dependencies { implementation project(':doom') + additionalRuntimeClasspath project(':doom') } // This block of code expands all declared replace properties in the specified resource targets. diff --git a/neoforge/src/main/java/com/portingdeadmods/doomstation/DSMain.java b/neoforge/src/main/java/com/portingdeadmods/doomstation/DSMain.java index 60c2203..eac6fd7 100644 --- a/neoforge/src/main/java/com/portingdeadmods/doomstation/DSMain.java +++ b/neoforge/src/main/java/com/portingdeadmods/doomstation/DSMain.java @@ -1,6 +1,8 @@ package com.portingdeadmods.doomstation; import com.portingdeadmods.doomstation.registry.RegisterStuff; +import net.minecraft.CrashReport; +import net.minecraft.client.Minecraft; import org.slf4j.Logger; import com.mojang.logging.LogUtils; import net.neoforged.bus.api.IEventBus; @@ -19,11 +21,12 @@ public DSMain(IEventBus modEventBus, ModContainer modContainer) throws IOExcepti RegisterStuff.CREATIVE_MODE_TABS.register(modEventBus); RegisterStuff.ITEMS.register(modEventBus); ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); + Thread doomThread = new Thread(() -> { try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); mochadoom.Engine.main(new String[]{}); - System.out.println("Engine started"); + LOGGER.info("MochaDoom Engine started"); } catch (IOException e) { e.printStackTrace(); } finally { @@ -31,6 +34,7 @@ public DSMain(IEventBus modEventBus, ModContainer modContainer) throws IOExcepti } }); doomThread.start(); + //modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC); }