diff options
author | cheapie <no-email-for-you@example.com> | 2017-02-12 22:35:54 -0600 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2017-02-12 22:35:54 -0600 |
commit | 7eb44cb285fd576caa68e7d78831e439d6e6db36 (patch) | |
tree | c0db924ccf556d002e23ebd3c52da0152ef1f5dd | |
parent | 81c263dbeb472d919f49fceae47986d990fc70da (diff) | |
download | player_textures-7eb44cb285fd576caa68e7d78831e439d6e6db36.tar player_textures-7eb44cb285fd576caa68e7d78831e439d6e6db36.tar.gz player_textures-7eb44cb285fd576caa68e7d78831e439d6e6db36.tar.bz2 player_textures-7eb44cb285fd576caa68e7d78831e439d6e6db36.tar.xz player_textures-7eb44cb285fd576caa68e7d78831e439d6e6db36.zip |
Fix dependencies
-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"}) |