Elkien3 bc20045705 Fixed Redundant Folder
Now there wont be two "kingdoms_game"folders
2017-09-18 07:57:27 -05:00

9 lines
309 B
Lua

minetest.register_on_joinplayer(function(player)
local filename = minetest.get_modpath("player_textures").."/textures/player_"..player:get_player_name()
local f = io.open(filename..".png")
if f then
f:close()
default.player_set_textures(player, {"player_"..player:get_player_name()..".png"})
end
end)