Log a warning when register_simple_skin is missing

This commit is contained in:
parent c2f23fd6b4
commit 23fea69a01
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
if not mcl_skins or not mcl_skins.register_simple_skin then return end
if not mcl_skins or not mcl_skins.register_simple_skin then
minetest.log("warning", "[mcl_custom_skins] mcl_skins.register_simple_skin() does not exist. Most likely MineClone needs to be updated.")
return
end
local mod_path = minetest.get_modpath("mcl_custom_skins")
local textures = minetest.get_dir_list(mod_path .. "/textures")
table.sort(textures)