yl_skinsdb_addon/overwrite.lua
AliasAlreadyTaken 5a94c4c1b0 Version 1.0.0
2024-07-25 19:48:56 +02:00

13 lines
497 B
Lua

local skins = skins.skin_class
local old_skins_skin_class_set_hand_from_texture = skins.set_hand_from_texture
function skins:set_hand_from_texture()
if (minetest.get_current_modname() ~= nil) then
return old_skins_skin_class_set_hand_from_texture(self)
end
-- Not necessary, skinsdb sets a default hand!
-- local hand = minetest.get_current_modname()..':'..self._texture:gsub('[%p%c%s]', '')
-- local hand = "skinsdb:playerLeetPeet0png"
-- self:set_hand(hand)
end