mirror of
https://github.com/APercy/airutils.git
synced 2025-03-21 18:41:21 +00:00
added warning message aganst Skinsdb
This commit is contained in:
parent
498c2cf3a0
commit
753243c84e
1 changed files with 7 additions and 4 deletions
|
@ -1,9 +1,16 @@
|
||||||
|
|
||||||
airutils.pilot_textures = {"pilot_clothes1.png","pilot_clothes2.png","pilot_clothes3.png","pilot_clothes4.png"}
|
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", {
|
minetest.register_chatcommand("au_uniform", {
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local player = minetest.get_player_by_name(name)
|
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
|
if player then
|
||||||
airutils.uniform_formspec(name)
|
airutils.uniform_formspec(name)
|
||||||
else
|
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
|
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")
|
old_texture = player:get_attribute("set_skin:player_skin")
|
||||||
end
|
end
|
||||||
elseif skins then
|
|
||||||
if skins.skins[name] ~= nil then
|
|
||||||
old_texture = skins.skins[name]
|
|
||||||
end
|
|
||||||
elseif u_skins then
|
elseif u_skins then
|
||||||
if u_skins.u_skins[name] ~= nil then
|
if u_skins.u_skins[name] ~= nil then
|
||||||
old_texture = u_skins.u_skins[name]
|
old_texture = u_skins.u_skins[name]
|
||||||
|
|
Loading…
Add table
Reference in a new issue