Skip to content

Conversation

@KANAjetzt
Copy link
Member

@KANAjetzt KANAjetzt added this to the 3.x - v6.x milestone Oct 31, 2025
@KANAjetzt KANAjetzt requested a review from Qubus0 October 31, 2025 20:06
@KANAjetzt KANAjetzt self-assigned this Oct 31, 2025
@KANAjetzt KANAjetzt added enhancement New feature or request 3.x labels Oct 31, 2025
# Returns:
# - ModConfig: The duplicated ModConfig object if successful, or null otherwise.
static func duplicate_config(config: ModConfig, config_name: String) -> ModConfig:
return create_config(config.mod_id, config_name, config.data)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the .data in directly might create issues since both dictionaries would be the same reference, so changing the original will change the dupe. I think .data.duplicate(true) is what we want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants