Skip to content

Commit

Permalink
Add armor.set_skin_mod() to set the skin mod name manually (#51)
Browse files Browse the repository at this point in the history
Useful for skin mod forks that do not use the same name.
  • Loading branch information
AntumDeluge authored Jun 23, 2021
1 parent 0dffd62 commit 1dec1f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 3d_armor/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -673,3 +673,10 @@ armor.drop_armor = function(pos, stack)
end
end
end

--- Allows skin mod to be set manually.
--
-- Useful for skin mod forks that do not use the same name.
armor.set_skin_mod = function(mod)
armor.skin_mod = mod
end

0 comments on commit 1dec1f2

Please sign in to comment.