mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Update builtin/mainmenu/content/contentdb.lua
This commit is contained in:
parent
6ec55dd0f7
commit
acc81950bf
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ function contentdb.get_package_by_id(id)
|
|||
return contentdb.package_by_id[id]
|
||||
end
|
||||
|
||||
|
||||
local function strip_game_suffix(type, name)
|
||||
if (type == nil or type == "game") and #name > 5 and name:sub(#name - 4) == "_game" then
|
||||
return name:sub(1, #name - 5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue