mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-11-18 07:50:23 +01:00
Fix external skins without "_sort_id"
This commit is contained in:
parent
166489597a
commit
2673afa087
@ -71,8 +71,8 @@ end
|
||||
|
||||
local function skins_sort(skinslist)
|
||||
table.sort(skinslist, function(a,b)
|
||||
local a_id = a:get_meta("_sort_id")
|
||||
local b_id = b:get_meta("_sort_id")
|
||||
local a_id = a:get_meta("_sort_id") or 10000
|
||||
local b_id = b:get_meta("_sort_id") or 10000
|
||||
if a_id ~= b_id then
|
||||
return a:get_meta("_sort_id") < b:get_meta("_sort_id")
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user