Can't cast int[] to stdlib.List<int>
Laifsyn opened this issue ยท 0 comments
Issue description
var myarray as int[] = [1,2,3,4,5];
var mylist = myarray as stdlib.List<int>;
mylist.remove(2);
myarray = mylist;
println("MyArrayLength" + myarray.length);
for i in myarray{
println(i as string);
}
Steps to reproduce
No response
Script used
.
The crafttweaker.log file
.
Minecraft version
1.18
Modloader
Fabric
Modloader version
0.14.6
CraftTweaker version
9.1.146
Other relevant information
No response