[Bug] "int" argument in scarpet is treated as "double" in game
KonaeAkira opened this issue ยท 0 comments
I tested the new argument typing in scarpet using this short script, test.sc
:
__config() -> {
'legacy_command_type_support' -> true,
'arguments' -> {
'bar' -> {
'type' -> 'int',
'min' -> 0
}
}
};
__command() -> null;
foo(bar) -> (
print(bar);
)
Minecraft however, thinks that bar
is of type double
.
Most importantly, it accepts double values
/test foo 9.2 => 9.2
Tested with fabric-carpet-1.16.4-1.4.17+v201111
on minecraft 1.16.3