mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-28 05:21:05 +01:00
Fix initial_properties for minecarts
This commit is contained in:
parent
bee32418c4
commit
9be0d27dd8
1 changed files with 8 additions and 6 deletions
|
@ -184,12 +184,14 @@ local entity_mapping = {}
|
|||
|
||||
local function register_entity(entity_id, mesh, textures, drop, on_rightclick, on_activate_by_rail)
|
||||
local cart = {
|
||||
physical = false,
|
||||
collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16},
|
||||
visual = "mesh",
|
||||
mesh = mesh,
|
||||
visual_size = {x=1, y=1},
|
||||
textures = textures,
|
||||
initial_properties = {
|
||||
physical = false,
|
||||
collisionbox = {-10/16., -0.5, -10/16, 10/16, 0.25, 10/16},
|
||||
visual = "mesh",
|
||||
mesh = mesh,
|
||||
visual_size = {x=1, y=1},
|
||||
textures = textures,
|
||||
},
|
||||
|
||||
on_rightclick = on_rightclick,
|
||||
|
||||
|
|
Loading…
Reference in a new issue