The length of that beautiful play is but only 1 night
The author's purpose in this excerpt was to describe the struggle and necessity of their tent.
This is correct. Dangling modifiers are often used by learners due to the lack of knowledge of the English syntax, or due to transfer from their native languages. This occurrence however is not difficult to fix.