Jump to content

Tile Entity Losing Its Data On Chunk Reload


Shad0wB1ade

Recommended Posts

When I place a block that has a tile entity on a server and the chunk that the block is in unloads and then loads again I get this error:

 

[glow=red,2,300]Skipping BlockEntity with id solarPanelTileEntityLeadstone[/glow]

 

What could possible be causing that? Please help if you know ;)

 

Thanks in advance!

Link to comment
Share on other sites

I just need to know which code you are asking for...

    @Mod.EventHandler

    public void preInit(FMLPreInitializationEvent event)

    {

        Config.init(event.getSuggestedConfigurationFile());

        SEGameObjects.init();

        SEGameObjects.registerTileEntities();

    }

    //This is just a temporaty place for the tile entity registration.

    public static void registerTileEntities()

    {

        GameRegistry.registerTileEntity(TileEntitySolarPanel.class, Refs.SOLAR_PANEL_TILE);

        GameRegistry.registerTileEntity(TileEntitySolarPanelLeadstone.class, Refs.SOLAR_PANEL_TILE + "Leadstone");

        GameRegistry.registerTileEntity(TileEntitySolarPanelHardened.class, Refs.SOLAR_PANEL_TILE + "Hardened");

        GameRegistry.registerTileEntity(TileEntitySolarPanelRedstone.class, Refs.SOLAR_PANEL_TILE + "Redstone");

        GameRegistry.registerTileEntity(TileEntitySolarPanelResonant.class, Refs.SOLAR_PANEL_TILE + "Resonant");

        GameRegistry.registerTileEntity(TileEntitySolarPanelAdvanced.class, Refs.SOLAR_PANEL_TILE + "Advanced");

        GameRegistry.registerTileEntity(TileEntitySolarPanelUltimate.class, Refs.SOLAR_PANEL_TILE + "Ultimate");

    }

 

NOTE all the tile entity classes just extrend the main TileEntitySolarPanel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.