fix Undeclared global variable "unified_inventory" accessed

This commit is contained in:
Alexander Weber 2022-03-05 12:53:55 +01:00 committed by bell07
parent af5e6fcecc
commit c9fa5d92df

View File

@ -1,5 +1,5 @@
local S = minetest.get_translator("skinsdb") local S = minetest.get_translator("skinsdb")
local ui = unified_inventory local ui = minetest.global_exists("unified_inventory") and unified_inventory
function skins.get_formspec_context(player) function skins.get_formspec_context(player)
if player then if player then