Short cannot be cast to String
kindlich opened this issue ยท 0 comments
Intro:
When trying to cast short to String it fails.
Issue Description:
When messing with variable types, I tried printing out the value of a short variable.
Then I got an error, short cannot be cast to String.
What happens:
I either get a huge error with Byte-Code that I am unable to decipher, or an error that says
parameter count mismatch: got 1 arguments
What you expected to happen:
I expected the value to be printed out, in other words the Short being converted to String
Workaround
Casting the short to int in the print command or somewhere before that, it will work.
Script used:
Minetweaker.log file
Affected Versions (Do not use "latest"):
As ZenTypeShort is in stanhebben.zenscript.type
this issue is probably present in all CT versions
- Minecraft: 1.11.2
- Forge: 13.20.0.2232
- Crafttweaker: 3.0.26