From 753243c84e4af4a2edac684fc3e4e4502f87a08c Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Fri, 8 Apr 2022 17:24:37 -0300 Subject: [PATCH] added warning message aganst Skinsdb --- pilot_skin_manager.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pilot_skin_manager.lua b/pilot_skin_manager.lua index cfc5033..74ace0b 100644 --- a/pilot_skin_manager.lua +++ b/pilot_skin_manager.lua @@ -1,9 +1,16 @@ airutils.pilot_textures = {"pilot_clothes1.png","pilot_clothes2.png","pilot_clothes3.png","pilot_clothes4.png"} +local skinsdb_mod_path = minetest.get_modpath("skinsdb") minetest.register_chatcommand("au_uniform", { func = function(name, param) local player = minetest.get_player_by_name(name) + + if skinsdb_mod_path then + minetest.chat_send_player(name, "This tool is incompatible with skinsdb.") + return + end + if player then airutils.uniform_formspec(name) else @@ -40,10 +47,6 @@ function airutils.set_player_skin(player, skin) if player:get_attribute("set_skin:player_skin") ~= nil and player:get_attribute("set_skin:player_skin") ~= "" then old_texture = player:get_attribute("set_skin:player_skin") end - elseif skins then - if skins.skins[name] ~= nil then - old_texture = skins.skins[name] - end elseif u_skins then if u_skins.u_skins[name] ~= nil then old_texture = u_skins.u_skins[name]