diff options
-rw-r--r-- | depends.txt | 1 | ||||
-rw-r--r-- | init.lua | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/depends.txt b/depends.txt index e69de29..5e78c21 100644 --- a/depends.txt +++ b/depends.txt @@ -0,0 +1 @@ +default? @@ -11,7 +11,9 @@ local textures = pivot(minetest.get_dir_list(minetest.get_modpath("player_textur local function applyskin(player) local name = player:get_player_name() if textures[string.format("player_%s.png",name)] then - default.player_set_textures(player,string.format("[combine:64x32:0,0=player_%s.png",name)) + if minetest.get_modpath("default") then + default.player_set_textures(player,string.format("[combine:64x32:0,0=player_%s.png",name)) + end player:set_properties({textures={string.format("[combine:64x32:0,0=player_%s.png",name)}}) end player:set_properties({visual="mesh",visual_scale={x=1,y=1},mesh="character.b3d"}) |