[0.14] LuaEntityPrototype.collision_mask wrong definition
Posted: Sun Oct 16, 2016 12:48 am
According to the Lua Api for LuaEntityPrototype.collision_mask It should return an array of string.
Placing a rail (or any other entity that have a collision_mask) on the ground, put the mouse over it and run the following command :
Expected result : It should print an array of string
Instead it print a table of string->boolean
Placing a rail (or any other entity that have a collision_mask) on the ground, put the mouse over it and run the following command :
Code: Select all
/c game.player.print(serpent.block(game.player.selected.prototype.collision_mask))
Code: Select all
{"floor-layer","object-layer","water-tile"}
Code: Select all
{["floor-layer"]=true,["object-layer"]=true,["water-tile"]=true}