mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-26 02:40:38 +01:00
Minor cleanup
This commit is contained in:
parent
222ae80d93
commit
a97d1ce163
9
init.lua
9
init.lua
@ -871,11 +871,11 @@ end
|
||||
|
||||
local function __sort(inv, reverse)
|
||||
sort(inv, function(a, b)
|
||||
if type(a) ~= "string" then
|
||||
if not is_str(a) then
|
||||
a = a:get_name()
|
||||
end
|
||||
|
||||
if type(b) ~= "string" then
|
||||
if not is_str(b) then
|
||||
b = b:get_name()
|
||||
end
|
||||
|
||||
@ -1859,6 +1859,7 @@ core.register_on_player_inventory_action(function(player, action, inv, info)
|
||||
end)
|
||||
|
||||
if rawget(_G, "armor") then
|
||||
__3d_armor = true
|
||||
armor:register_on_update(set_fs)
|
||||
end
|
||||
|
||||
@ -2138,10 +2139,6 @@ on_mods_loaded(function()
|
||||
if unified_inventory then
|
||||
function unified_inventory.set_inventory_formspec() return end
|
||||
end
|
||||
|
||||
if rawget(_G, "armor") then
|
||||
__3d_armor = true
|
||||
end
|
||||
end)
|
||||
|
||||
on_joinplayer(function(player)
|
||||
|
Loading…
Reference in New Issue
Block a user