summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2017-02-12 22:35:54 -0600
committercheapie <no-email-for-you@example.com>2017-02-12 22:35:54 -0600
commit7eb44cb285fd576caa68e7d78831e439d6e6db36 (patch)
treec0db924ccf556d002e23ebd3c52da0152ef1f5dd
parent81c263dbeb472d919f49fceae47986d990fc70da (diff)
downloadplayer_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.txt1
-rw-r--r--init.lua4
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?
diff --git a/init.lua b/init.lua
index 90c725c..5b61fc9 100644
--- a/init.lua
+++ b/init.lua
@@ -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"})