#Cannot be Cast Error

9 messages · Page 1 of 1 (latest)

jovial scaffold
#

Hi,

I'm getting the following error when trying to join a server with the exact same KubeJS config as my client.

[player] lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.ClassCastException: class cofh.lib.util.crafting.IngredientWithCount cannot be cast to class net.minecraftforge.common.crafting.NBTIngredient (cofh.lib.util.crafting.IngredientWithCount is in module [email protected] of loader 'TRANSFORMER' @65cc5252; net.minecraftforge.common.crafting.NBTIngredient is in module [email protected] of loader 'TRANSFORMER' @65cc5252)

Even though this error looks like it's cofh related, I've narrowed it down to kubejs through disabling mods. I've added some cofh recipes, so I think it may be related to one of them. No KubeJS errors inside any of my logs, aside from the standard failed to get recipe errors. Any thoughts?

sharp harnessBOT
#

Paste version of script.js, launch.js, trading.js from @jovial scaffold

tawny ferryBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

jovial scaffold
#

The error comes from one of my scripts, since when removing them from both the server and the client I'm able to connect to my test server without issue

#

It's a problem with the trading script, specifically, since launch + script work but adding trading does not

jovial scaffold
#

Bump?

tawny ferryBOT
#

@jovial scaffold Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

tawny ferryBOT
#

@jovial scaffold Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

tawny ferryBOT
#

@jovial scaffold Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!