Fixed crash on MT0.4

This commit is contained in:
Pierre-Yves Rollo 2019-03-11 10:16:18 +01:00
parent 010b7cc89f
commit 767c2653c2

View File

@ -169,7 +169,7 @@ local function place_entities(pos)
z = v.rotation.z*math.pi/2,
})
else -- For minetest < 5.0 -- TODO: To be removed in the future
objrefs[entity_name]:set_yaw(values.rotation.y + (props.yaw or 0))
objrefs[entity_name]:set_yaw(v.rotation.y*math.pi/2 + (props.yaw or 0))
end
end
end