Краш сервера 1.7.10

Статус
В этой теме нельзя размещать новые ответы.
Код:
---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 7/26/15 7:59 PM
Description: Exception in server tick loop

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)
    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)
    at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)
    at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:319)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:170)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620)
    at java.lang.Thread.run(Thread.java:745)
Caused by: cpw.mods.fml.common.LoaderException
    at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
    ... 27 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
    Minecraft Version: 1.7.10
    Operating System: Linux (amd64) version 3.14.32-xxxx-grs-ipv6-64
    Java Version: 1.7.0_72, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 234660680 bytes (223 MB) / 484966400 bytes (462 MB) up to 954728448 bytes (910 MB)
    JVM Flags: 2 total; -Xmx1024M -Xms256M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: ~~ERROR~~ NullPointerException: null
    Mantle Environment: DO NOT REPORT THIS CRASH! Unsupported mods in environment: bukkit
    Profiler Position: N/A (disabled)
    Is Modded: Definitely; Server brand changed to 'cauldron,craftbukkit,mcpc,fml,forge'
    Type: Dedicated Server (map_server.txt)
Вот краш
 
Код:
@Mod(modid=ModInfo.MODID, name=ModInfo.NAME, version=ModInfo.VERSION)

public class CCraft
{
    @Mod.Instance("CCraft")
    public static CCraft instance;
    @SidedProxy(modId=ModInfo.MODID, clientSide = "ccraft.src.ProxyClient", serverSide = "ccraft.src.ProxyCommon")
    public static ProxyClient proxy;
        
    //Materials
     
    //Armor    
    //public static Item helmetModel;    
    //Items
    public static Item SwordCom;
    public static Item Elucidator;
    public static Item CuzHammer;
    public static Item DragonSword;
    public static Item IceAxe;
    public static Item PotionHP;
    public static Item PotionMP;
    public static Item PotionHPh;
    public static Item PotionMPh;
    public static Item PotionHPu;
    public static Item PotionMPu;
    //Blocks
    public static Block block_obj;
    //public static Block colBlock;
    

    
    final static CreativeTabs cTab = new CreativeTabs("cTab"){
        
        @Override
        @SideOnly(Side.CLIENT)
        public Item getTabIconItem() {
            return ItemsList.TestItem;
        }

    };
    
    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
                
        ItemsList.init();
        //items
        PotionHP = new PotionHP(0, 4.0F, false).setUnlocalizedName("PotionHP");
        PotionMP = new PotionMP(0, 4.0F, false).setUnlocalizedName("PotionMP");
        PotionHPh = new PotionHPh(0, 4.0F, false).setUnlocalizedName("PotionHPh");
        PotionMPh = new PotionMPh(0, 4.0F, false).setUnlocalizedName("PotionMPh");
        PotionHPu = new PotionHPu(0, 4.0F, false).setUnlocalizedName("PotionHPu");
        PotionMPu = new PotionMPu(0, 4.0F, false).setUnlocalizedName("PotionMPu");
        SwordCom = new SwordCommon();
        Elucidator = new Elucidator();
        CuzHammer = new CuzHammer();
        DragonSword = new DragonSword();
        IceAxe = new IceAxe();
        
        
       // helmetModel = new Helmet(0, 0).setUnlocalizedName("bestarmorhelmet");    
        
           
       // GameRegistry.registerItem(helmetModel, "HelmetModel");
        
        GameRegistry.registerItem(IceAxe, "IceAxe");
        GameRegistry.registerItem(PotionHP, "PotionHP");
        GameRegistry.registerItem(PotionMP, "PotionMP");
        GameRegistry.registerItem(PotionHPh, "PotionHPh");
        GameRegistry.registerItem(PotionMPh, "PotionMPh");
        GameRegistry.registerItem(PotionHPu, "PotionHPu");
        GameRegistry.registerItem(PotionMPu, "PotionMPu");
        GameRegistry.registerItem(DragonSword, "DragonSword");
        GameRegistry.registerItem(SwordCom, "SwordCom");
        GameRegistry.registerItem(CuzHammer, "CuzHammer");
        GameRegistry.registerItem(Elucidator, "Elucidator");
        
        //blocks
        block_obj = new BlockObj();
        //colBlock = new ColBlock();
        GameRegistry.registerBlock(block_obj, "block_obj");
        //GameRegistry.registerBlock(colBlock, "colBlock");

        GameRegistry.registerTileEntity(TileEntityObj.class, "TileEntityObj");
        
        //Armor        
    
        
        
        proxy.preInit();
    }
    
    
    @Mod.EventHandler
    public void init(FMLInitializationEvent event) 
    {
        proxy.init();
    }
    

    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event) 
    {
        
    }
}
Главный Класс
 
А что не правильно то?
[merge_posts_bbcode]Добавлено: 26.07.2015 22:22:06[/merge_posts_bbcode]

Раньше работало
 
Делай лучше отдельный файл по регистрации предметов.

Делаешь класс nananaHandler(ItemHandler)

Код:
package nanana;

imports(

)
public class ItemHandler {
public ItemHandler() {
}
public void registerItems(Item item, String name) { 
  GameRegistry.registerItem(item,name);
  LanguageRegistry.addName(item,name)
}
}
Потом нужно его объявить, в главном классе
Код:
public ItemHandler ihandler;
И в инит\лоад мода
Код:
ihandler = new ItemHandler();
Что по поводу мода твоего, то нужно делать ServerProxy как proxy.
Код:
public static ProxyClient proxy;

Меняй на это
Код:
public static ProxyCommon proxy;
 
Develance написал(а):
Делай лучше отдельный файл по регистрации предметов.

Делаешь класс nananaHandler(ItemHandler)

Код:
package nanana;

imports(

)
public class ItemHandler {
public ItemHandler() {
}
public void registerItems(Item item, String name) { 
  GameRegistry.registerItem(item,name);
  LanguageRegistry.addName(item,name)
}
}
Потом нужно его объявить, в главном классе
Код:
public ItemHandler ihandler;
И в инит\лоад мода
Код:
ihandler = new ItemHandler();
Что по поводу мода твоего, то нужно делать ServerProxy как proxy.
Код:
public static ProxyClient proxy;

Меняй на это
Код:
public static ProxyCommon proxy;
Спасибо, помогло.
Закрыто!
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху