friendlyhj/ZenUtils

Error in log when using StaticString.format

Closed this issue · 2 comments

[INITIALIZATION][CLIENT][ERROR] crafttweaker\tooltips\coin_tooltips.zs:16 > a method available but none matches the parameters (string, int)
This is usually an error in your script, not in the mod
format(string, ZenTypeNative: java.lang.Object[])

It seems that ZenScript has no idea how to convert an int to an object.

Use StaticString.valueOf to convert the int to a string manually?

That's what I ended up doing.