- 28
- 1
Шел по гайдам, указал главный класс мода и по итогу мод запускается дважды, о чем свидетельствует краш-лог
Главный класс:
mcmod.info
Главный класс:
Java:
package com.nikkey.trg;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@Mod(modid=Reference.MODID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_MINECRAFT_VERSION)
public class Main {
@Instance
public static Main instance;
@SidedProxy(clientSide = Reference.CLIENT, serverSide = Reference.COMMON)
public static CommonProxy proxy;
@Mod.EventHandler
public void preInit(final FMLPreInitializationEvent event) {
}
@Mod.EventHandler
public static void Init(final FMLInitializationEvent event) {
}
@Mod.EventHandler
public static void postInit(final FMLPostInitializationEvent event) {
}
}
mcmod.info
JSON:
[{
"modid": "rtg",
"name": "Ancient",
"description": "Example placeholder mod.",
"version": "1.2",
"mcversion": "1.12.2",
"url": "",
"updateUrl": "",
"authorList": ["NikKeY"],
"credits": "The Forge and FML guys, for making this example",
"logoFile": "",
"screenshots": [],
"dependencies": []
}]
- Краш-лог
-
java.lang.IllegalArgumentException: Multiple entries with same key: trg=FMLMod:trg{1.2} and trg=FMLMod:trg{1.2}. To index multiple values under a key, use Multimaps.index.
Краш-лог:
java.lang.IllegalArgumentException: Multiple entries with same key: trg=FMLMod:trg{1.2} and trg=FMLMod:trg{1.2}. To index multiple values under a key, use Multimaps.index.