#Help with crash: "This registry can't create intrusive holders"

12 messages · Page 1 of 1 (latest)

upbeat sandal
#

So I am trying to add a custom block to my mod, and I have been following along a certain tutorial. I have created textures and all, but when I open the creative menu, my game crashes with the attached crash report.

It has to be one of the files related to the block, since it was working just fine before adding it in, but I am not sure which or why the error is happening. Could anyone lend me a hand?

GitHub: https://github.com/Jasel-Umena/Apocalypse-Origins-1.20.X

GitHub

Contribute to Jasel-Umena/Apocalypse-Origins-1.20.X development by creating an account on GitHub.

last dock
#

you're not registering your blocks it seems

upbeat sandal
#

Help with crash: "This registry can't create intrusive holders"

upbeat sandal
#

I could have sworn I added the block in there on the last line

#

maybe the github is outdated, one sec

#

Oh, wait, i think I see the problem

last dock
#

i don't see any difference

upbeat sandal
#

Isn't this how you register the block?

last dock
#

yes but that static final field doesn't get initialized unless you load the class, that's how items are done in your code try that