detect player_api
This commit is contained in:
parent
f286737812
commit
945047d059
2
init.lua
2
init.lua
@ -208,7 +208,7 @@ skins.update_player_skin = function(player)
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
if is_50 then
|
||||
if minetest.get_modpath("player_api") then
|
||||
player_api.set_textures(player, {skins.skins[name] .. ".png"})
|
||||
else
|
||||
default.player_set_textures(player, {skins.skins[name] .. ".png"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user