2ba34c454e
- Currently all skins must be pre-loaded into the mod texture folder at startup time; server restart required to change a player skin. - Currently has partial support for the wieldhand (uninjured only) - Some configuration added (adjustable rescaling, optional priv)
15 lines
519 B
Lua
15 lines
519 B
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local minetest, nodecore
|
|
= minetest, nodecore
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
local modname = minetest.get_current_modname()
|
|
local api = _G[modname]
|
|
|
|
local base = nodecore.player_skin
|
|
function nodecore.player_skin(player, options, ...)
|
|
local pname = options.playername or player and player:get_player_name()
|
|
local skin = pname and api.get_skin(pname)
|
|
return skin or base(player, options, ...)
|
|
end
|