I get this error on startup and i cant seem to figure it out. I dont know what code you will need to see but here is the error
2012-11-26 20:20:02 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2012-11-26 20:20:02 [SEVERE] [ForgeModLoader] Caught exception from Floracraft
java.lang.IllegalArgumentException: Can not set static floracraft.common.core.CommonProxy field floracraft.common.Floracraft.proxy to floracraft.common.Floracraft
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:396)
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:322)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:415)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:401)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:150)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:420)
at net.minecraft.client.Minecraft.run(Minecraft.java:752)
at java.lang.Thread.run(Unknown Source)
Code in mod
main mod class with proxy stuff
@Mod(modid = Strings.MOD_ID, name = Strings.MOD_NAME, version = Strings.VERSION)
@NetworkMod(channels = { Strings.CHANNEL_NAME },clientSideRequired = true, serverSideRequired = false, packetHandler = ServerPacketHandler.class)
public class Floracraft {
@Instance(Strings.MOD_ID)
@SidedProxy(clientSide = Strings.CLIENT_PROXY_CLASS, serverSide= Strings.SERVER_PROXY_CLASS)
public static CommonProxy proxy;
CommonProxy
public class CommonProxy implements IGuiHandler{
public void initRenderingAndTextures() {}
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
return null;
}
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
if(tileEntity != null)
{
switch(ID)
{
case 0:
}
}
return ID;
}
public void initTileEntities() {
}
}
Code in mod
main mod class with proxy stuff
CommonProxy