OpenModularTurretsTeam / OMTControl

Addon for OpenModularTurrets, providing advanced control features.
GNU General Public License v3.0
0 stars 0 forks source link

Crashing on startup due to registering openmodularturrets:expander twice #3

Closed rokiyo closed 7 years ago

rokiyo commented 7 years ago

BlockBaseTurretAddonMain.getItemBlock() is returning a new instance of openmodularturrets.items.blocks.ItemBlockExpander, which attempts to register itself in its constructor.

This is crashing MC on startup, with the following error:

[23:45:45] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[23:45:45] [Client thread/ERROR] [FML]: Caught exception from Open Modular Turrets Control (omtcontrol)
java.lang.IllegalArgumentException: The name openmodularturrets:expander has been registered twice, for omtteam.openmodularturrets.items.blocks.ItemBlockExpander@546a9963 and omtteam.openmodularturrets.items.blocks.ItemBlockExpander@201a6c2c.
    at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:472) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.register(FMLControlledNamespacedRegistry.java:849) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.registry.GameData.register_impl(GameData.java:254) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at net.minecraftforge.fml.common.registry.GameRegistry.register(GameRegistry.java:153) ~[forgeSrc-1.10.2-12.18.3.2185.jar:?]
    at omtteam.omlib.util.InitHelper.registerBlock(InitHelper.java:18) ~[OMLib_main/:?]
    at omtteam.omtcontrol.init.ModBlocks.initBlocks(ModBlocks.java:13) ~[OMTControl_main/:?]
    at omtteam.omtcontrol.proxy.CommonProxy.preInit(CommonProxy.java:12) ~[OMTControl_main/:?]
    at omtteam.omtcontrol.proxy.ClientProxy.preInit(ClientProxy.java:41) ~[OMTControl_main/:?]
    at omtteam.omtcontrol.OMTControl.preInit(OMTControl.java:43) ~[OMTControl_main/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]