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
The lua type name resolution returns the qualified java class name for API java classes like BlockApi. This results in bad error messages when using an incorrect type for the first argument of an instance method.
Example:
spell.block.asItem(spell)
Prints:
Error during spell execution: net.wizardsoflua.lua.BadArgumentException: bad argument #1 (self) to 'asItem': expected net.wizardsoflua.lua.classes.block.BlockApi but got Spell
at line 1 of command-line
The text was updated successfully, but these errors were encountered:
The lua type name resolution returns the qualified java class name for API java classes like BlockApi. This results in bad error messages when using an incorrect type for the first argument of an instance method.
Example:
Prints:
The text was updated successfully, but these errors were encountered: