Fixed player_textures mod dependency.

This commit is contained in:
stujones11 2013-04-14 17:22:23 +01:00
parent 0c050460d4
commit f5e4d7af9f

View File

@ -56,6 +56,9 @@ uniskins.update_player_visuals = function(self, player)
end
minetest.register_on_joinplayer(function(player)
if not minetest.get_modpath("player_textures") then
return
end
local name = player:get_player_name()
local filename = minetest.get_modpath("player_textures").."/textures/player_"..name
local f = io.open(filename..".png")