mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-09 11:15:05 +00:00
11 lines
363 B
Lua
11 lines
363 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()
|
||
|
player:set_properties({
|
||
|
textures = {"player_"..player:get_player_name()..".png", "player_"..player:get_player_name().."_back.png"},
|
||
|
})
|
||
|
end
|
||
|
end)
|