Hopefully get a load plugin working
This commit is contained in:
parent
33af84b110
commit
f2b4849844
|
@ -52,6 +52,12 @@ processResources
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
manifest {
|
||||||
|
attributes 'FMLCorePlugin': 'mekanism.common.asm.LoadingHook'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task moveSrc(type: Sync) {
|
task moveSrc(type: Sync) {
|
||||||
from 'common'
|
from 'common'
|
||||||
into 'src/main/java'
|
into 'src/main/java'
|
||||||
|
|
45
common/mekanism/common/asm/LoadingHook.java
Normal file
45
common/mekanism/common/asm/LoadingHook.java
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
package mekanism.common.asm;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import codechicken.core.launch.DepLoader;
|
||||||
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
||||||
|
|
||||||
|
public class LoadingHook implements IFMLLoadingPlugin
|
||||||
|
{
|
||||||
|
public LoadingHook()
|
||||||
|
{
|
||||||
|
System.out.println("Loading DepLoader");
|
||||||
|
DepLoader.load();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String[] getLibraryRequestClass()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String[] getASMTransformerClass()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getModContainerClass()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSetupClass()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void injectData(Map<String, Object> data)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue