Jump to content

Registering Recipe Types


Crescentine

Recommended Posts

I'm having some difficulties registering my recipe types. I keep getting a crash and I've tried to fix it for about three hours, but I was unbale to.

Could someone help me solve this problem / tell me what to change to make it work?

ModRecipeTypes Class (the one being complained about)

https://pastebin.com/BKsm2zpQ

Error/Crash Report 

https://pastebin.com/uc7bAsZA

 

I'd post my github repositary here, but its not updated due to me trying to make a custom recipe type many times (5 over the past three months) and not wanting to mess up the repo if I end up deleting it again.

 

Link to comment
Share on other sites

5 hours ago, diesieben07 said:

You should not create registry entries in static initializers. For RecipeType it does not matter, however it is a bad habit to get into.

You should really look into using git branches. Your problem description is the exact reason we do use git, not a reason to avoid it.

I don't really know how to use it that well but I guess i could try to learn more.

Link to comment
Share on other sites

I managed to fix that problem.. yet now it has given another one. 

https://pastebin.com/E0tZYVET

At this point, I don't even know what I did wrong or how to do this. I've tried to do this specific thing five times the past few months and its really annoying. Any help is appreciated. 

https://github.com/Crescentine/Trajans-Tanks-1.18

I updated the Github.

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.



×
×
  • Create New...

Important Information

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