- 215
- 3
Ошибка при запуске сервера:
Регистрация прокси
Прокси сервер
Прокси клиент
Код:
[18:15:27] [Server thread/ERROR] [FML]: The following problems were captured during this phase
[18:15:27] [Server thread/ERROR] [FML]: Caught exception from mod
cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: Attempted to load a proxy type mod.core.ServerProxy into mod.core.Core.cproxy, but the types don't match
Регистрация прокси
Код:
@SidedProxy(clientSide = "mod.core.ClientProxy", serverSide = "mod.core.ServerProxy")
public static ClientProxy cproxy;
public static ServerProxy sproxy;
...
@EventHandler
public void init(FMLInitializationEvent event)
{
сproxy.initMod();
}
Прокси сервер
Код:
public class ServerProxy
{
public void initMod(){
}
}
Прокси клиент
Код:
public class ClientProxy extends ServerProxy
{
@Override
public void initMod()
{
super.initMod();
...
}
}