mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-12-22 23:40:18 +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)
|
local function skins_sort(skinslist)
|
||||||
table.sort(skinslist, function(a,b)
|
table.sort(skinslist, function(a,b)
|
||||||
local a_id = a:get_meta("_sort_id")
|
local a_id = a:get_meta("_sort_id") or 10000
|
||||||
local b_id = b:get_meta("_sort_id")
|
local b_id = b:get_meta("_sort_id") or 10000
|
||||||
if a_id ~= b_id then
|
if a_id ~= b_id then
|
||||||
return a:get_meta("_sort_id") < b:get_meta("_sort_id")
|
return a:get_meta("_sort_id") < b:get_meta("_sort_id")
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user