Jump to content

[1.16] Game crashes when


KidKoderMod033109

Recommended Posts

Hi,

I was working on making a TE. But, when I place it down, the game crashes.

Here is the crash log:

https://gist.github.com/KidKoder09923/2d0ac3ddfd76360d2b825a315615fe4c

EDIT: Here is line 23-25:

public TileEntity createTileEntity(BlockState state, IBlockReader world) {
    final TileEntity tileEntity = ModTileEntityTypes.COPPER_CORE.get().create();
    return tileEntity;
}

Thank in advance

Edited by KidKoderMod033109
Added code
Link to comment
Share on other sites

Quote

java.lang.NullPointerException: Registry Object not present: simplycopper:copper_core

My guess is that you called a registry object instance before it was loaded, probably COPPER_ORE.get() within some sort of method handling without deferring the instance such that it only gets called when the TE type is registered and not when the static final variable is defined.

 

Please show the repository where this code is linked to.

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.