From 7eb44cb285fd576caa68e7d78831e439d6e6db36 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 12 Feb 2017 22:35:54 -0600 Subject: Fix dependencies --- depends.txt | 1 + init.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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"}) -- cgit v1.2.3