Null out the loader.

This commit is contained in:
somehussar committed 2025-12-13 18:21:36 +01:00
1 parent b4608ffe19
commit 4d825b6cf3
6 files changed
+55 -15

No files matched your search

+12
View File
@@ -14,6 +14,8 @@ import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.relauncher.Side;
import foxz.command.CommandNoppes;
import io.github.somehussar.janinoloader.api.IDynamicCompiler;
import io.github.somehussar.janinoloader.api.IDynamicCompilerBuilder;
import kamkeel.npcs.addon.AddonManager;
import kamkeel.npcs.command.CommandKamkeel;
import kamkeel.npcs.command.profile.CommandProfile;
@@ -140,6 +142,16 @@ public class CustomNpcs {
instance = this;
}
private static IDynamicCompiler jls;
public static IDynamicCompiler getDynamicCompiler() {
if (jls == null) {
jls = IDynamicCompilerBuilder.createBuilder().getCompiler();
}
return jls;
}
@EventHandler
public void load(FMLPreInitializationEvent ev) {
PacketHandler.Instance = new PacketHandler();