mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix crash when multiple mods with the same name provide settings
This commit is contained in:
parent
d35672e78e
commit
ad37df7f2e
@ -377,7 +377,8 @@ function settingtypes.parse_config_file(read_all, parse_mods)
|
||||
end
|
||||
|
||||
table.insert(settings, {
|
||||
name = game.name,
|
||||
name = game.path,
|
||||
readable_name = game.title,
|
||||
level = 1,
|
||||
type = "category",
|
||||
})
|
||||
@ -409,7 +410,7 @@ function settingtypes.parse_config_file(read_all, parse_mods)
|
||||
end
|
||||
|
||||
table.insert(settings, {
|
||||
name = mod.name,
|
||||
name = mod.path,
|
||||
readable_name = mod.title,
|
||||
level = 1,
|
||||
type = "category",
|
||||
@ -440,7 +441,8 @@ function settingtypes.parse_config_file(read_all, parse_mods)
|
||||
end
|
||||
|
||||
table.insert(settings, {
|
||||
name = mod.name,
|
||||
name = mod.path,
|
||||
readable_name = mod.title,
|
||||
level = 1,
|
||||
type = "category",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user