make it compatible with 3d_armor
This commit is contained in:
parent
e435d9c1ad
commit
107ff57b73
2 changed files with 20 additions and 7 deletions
|
@ -1 +1,3 @@
|
||||||
default
|
default
|
||||||
|
character_creator?
|
||||||
|
3d_armor?
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
--
|
--
|
||||||
-- this is a kind of pre-version of the Illuna skinmod.
|
-- this is a kind of pre-version of the Illuna skinmod.
|
||||||
-- it is supposed to work together with a skinserver later.
|
-- it is supposed to work together with a skinserver later.
|
||||||
-- since it is very basic and kindly rewritten by tenplus1,
|
-- since it is very basic and the base kindly rewritten by tenplus1,
|
||||||
-- i didn't yet decide about any license and so on.
|
-- i didn't yet decide about any license and so on.
|
||||||
|
|
||||||
-- get mod textures path
|
-- get mod textures path
|
||||||
|
@ -28,9 +28,20 @@ minetest.register_on_joinplayer(function(player)
|
||||||
|
|
||||||
-- apply player texture
|
-- apply player texture
|
||||||
minetest.after(1, function()
|
minetest.after(1, function()
|
||||||
player:set_properties({
|
if minetest.get_modpath("3d_armor") then
|
||||||
|
minetest.after(1, function(player)
|
||||||
|
if not player then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local name = player:get_player_name()
|
||||||
|
armor.textures[player:get_player_name()].skin = skin
|
||||||
|
armor:set_player_armor(player)
|
||||||
|
end, player)
|
||||||
|
else
|
||||||
|
player:set_properties({
|
||||||
textures = {skin},
|
textures = {skin},
|
||||||
})
|
})
|
||||||
end)
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue