Skip to content

Conversation

Fernando-A-Rocha
Copy link
Contributor

Fixes #4444

Previously, when a missing config node was added from the template, only its tag name, content, and comment were copied, leaving out all attributes.

This fix ensures that all attributes from the template node are copied into the new node, so added settings fully match the template. Currently only used in the new nodes.

@ArranTuna
Copy link
Collaborator

Tested and confirmed that this PR fixes the bug.

@FileEX FileEX merged commit 5e8fb14 into multitheftauto:master Sep 13, 2025
@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 13, 2025
@FileEX FileEX added this to the 1.7.1 milestone Sep 13, 2025
MTABot pushed a commit that referenced this pull request Sep 13, 2025
5e8fb14 Fix missing mtaserver.conf setting added from template not receiving attributes (#4452)
@Fernando-A-Rocha Fernando-A-Rocha deleted the fix-template-add-missing-node branch September 15, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<rule> is being added to mtaserver.conf multiple times
3 participants