From 23fea69a010bb2f1ed78eb44f9d1a86e33d73bcf Mon Sep 17 00:00:00 2001 From: Johannes Fritz Date: Mon, 12 Jun 2023 16:41:35 -0500 Subject: [PATCH] Log a warning when register_simple_skin is missing --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 19a9029..b38c946 100644 --- a/init.lua +++ b/init.lua @@ -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)