nc_skins-cd2025/skin_model.lua
Aaron Suen 2ba34c454e Initial skins mod based on NCC server mod
- 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)
2021-07-27 07:01:18 -04:00

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