You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I run my mod on a dedicated server It throws multiple errors.
To Reproduce
I have a script that uses libcd.util.TweakerUtils and lbcd.recipe.RecipeTweaker
I am using the following functions:
getItem() from TweakerUtils
removeRecipesFor() from RecipeTweaker
Expected behaviorOptional
I expect it to run the TweakerJS script without error
It looks like the line causing this is if (itemFound.toString().indexOf('air') >= 0). I have no idea why it's causing that, since the error being thrown is that it can't find the TooltipContext class and Item#toString doesn't use TooltipContext, but that seems like the issue. The best thing I could do is add in a way to check if an item ID exists.
It is interesting that it does not throw this error when loading from the client. It only occurs on a dedicated server.
I'll try to write it another way on my end and see if I can also correct it.
That's due to the TooltipContext class being a client-only thing used for building tooltips. It doesn't exist on the server, so it can't be called. I need to figure out why it's looking for TooltipContext on server-side.
Describe the bug
When I run my mod on a dedicated server It throws multiple errors.
To Reproduce
I have a script that uses libcd.util.TweakerUtils and lbcd.recipe.RecipeTweaker
I am using the following functions:
getItem() from TweakerUtils
removeRecipesFor() from RecipeTweaker
Expected behavior Optional
I expect it to run the TweakerJS script without error
Screenshots Optional
snippet of crash report
Code Example being run
Version of the (please complete the following information):
The text was updated successfully, but these errors were encountered: