Jump to content

SLOVED[1.7.10]RecipeSorter not working?


FLUFFY2

Recommended Posts

I have a custom recipe that WORKS while useing:

GameRegistry.addRecipe(new LanternRefuelRecipe());

 

But that throws me an error:

Unknown recipe class! com.fluffy.amnesia.handler.LanternRefuelRecipe Modder please refer to net.minecraftforge.oredict.RecipeSorter

 

So i just updated my code:

RecipeSorter.register("Amnesia:lantern", LanternRefuelRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless");

Its now STOPPED working. No error, crash, just there is no crafting resoults.

 

My Recipe class:

http://pastebin.com/3VkyTC1F

 

In the modder forum nobody has clue why is that.

It mayebe a bug or it just not that simple how i tought it is.

Useing forge .1159!

Thanks!

Link to comment
Share on other sites

It looks okay to me, however, does the code itself run at all?

If you are satisfying the recipe with another recipe earlier in the sort list then it'd work fine.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

No, RecipeSorter needs to register your Recipe CLASS ONCE. So it know how to sort future instances of that class.

Shaped comes before shapeless etc..

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.