mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02: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
|
end
|
||||||
|
|
||||||
table.insert(settings, {
|
table.insert(settings, {
|
||||||
name = game.name,
|
name = game.path,
|
||||||
|
readable_name = game.title,
|
||||||
level = 1,
|
level = 1,
|
||||||
type = "category",
|
type = "category",
|
||||||
})
|
})
|
||||||
@ -409,7 +410,7 @@ function settingtypes.parse_config_file(read_all, parse_mods)
|
|||||||
end
|
end
|
||||||
|
|
||||||
table.insert(settings, {
|
table.insert(settings, {
|
||||||
name = mod.name,
|
name = mod.path,
|
||||||
readable_name = mod.title,
|
readable_name = mod.title,
|
||||||
level = 1,
|
level = 1,
|
||||||
type = "category",
|
type = "category",
|
||||||
@ -440,7 +441,8 @@ function settingtypes.parse_config_file(read_all, parse_mods)
|
|||||||
end
|
end
|
||||||
|
|
||||||
table.insert(settings, {
|
table.insert(settings, {
|
||||||
name = mod.name,
|
name = mod.path,
|
||||||
|
readable_name = mod.title,
|
||||||
level = 1,
|
level = 1,
|
||||||
type = "category",
|
type = "category",
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user