1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-11-16 07:20:37 +01:00

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 end
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
if not minetest.get_modpath("player_textures") then
return
end
local name = player:get_player_name() local name = player:get_player_name()
local filename = minetest.get_modpath("player_textures").."/textures/player_"..name local filename = minetest.get_modpath("player_textures").."/textures/player_"..name
local f = io.open(filename..".png") local f = io.open(filename..".png")