mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 15:44:30 +00:00
Null out the loader.
This commit is contained in:
1 parent
b4608ffe19
commit
4d825b6cf3
6 files changed
+55
-15
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user