Jump to content

error executing task in Client


skip999

Recommended Posts

Hello,

I have been working on a custom recipe class. As part of this recipe, I needed to read fluids from a JSON file, and had to write a custom handler to deal with this since there doesn't appear to be one (as with Ingredient for example). As far as I can tell, it works perfectly. It reads the recipe correctly from the JSON file. However, I'm not sure if I have done my PacketBuffer read and write methods correctly for my FluidIngredient class. The reason I say this is because when trying to run JEI, I get the following error in the log:

[20:48:05] [Render thread/FATAL]: Error executing task on Client
java.lang.NullPointerException: null

I know this has to be the issue, because when I disable the custom recipe from being serialized, JEI runs fine and the error disappears. I have attached the full log below, and have also given links to the relevant classes. In this case, they are FluidItem2FluidRecipeSerializer and FluidIngredient.

 

FluidItem2FluidRecipeSerializer: https://github.com/skiprocks999/ElectrodynamcisExperimental/blob/main/src/main/java/electrodynamics/common/recipe/categories/fluiditem2fluid/FluidItem2FluidRecipeSerializer.java

FluidIngredient: https://github.com/skiprocks999/ElectrodynamcisExperimental/blob/main/src/main/java/electrodynamics/common/recipe/recipeutils/FluidIngredient.java

 

This is new ground for me in terms of modding, so I imagine the mistake will be easy to spot.

 

 

latest.log

Link to comment
Share on other sites

Okay so I have made the changes you recommended plus a few more, but to no avail. I can't get anything from the log, and it looks like the write() method in the serializer nor the read() methods are even called. The links are the same as before, and I have attached the latest log as well.

latest.log

Link to comment
Share on other sites

I finally tracked down the error. It actually was coming from another class entirely. At least I know what the issue is being caused by now. As a quick question, can anyone point me to a list of fluid tags please. I can't seem to find one.

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.