diff --git a/mods/armor/init.lua b/mods/armor/init.lua index aa05516..e509662 100644 --- a/mods/armor/init.lua +++ b/mods/armor/init.lua @@ -5,6 +5,7 @@ armor = {} +armor.player_skin = "character.png" armor.update_time = 1 armor.materials = { @@ -118,7 +119,7 @@ function armor.update(player) local groups = armor.get_groups(player) player:set_armor_groups({fleshy = groups.fleshy}) - local image = armor.get_texture(player, "character.png") + local image = armor.get_texture(player, armor.player_skin) if image ~= default.player_get_textures(player)[1] then default.player_set_textures(player, {image}) end diff --git a/mods/default/init.lua b/mods/default/init.lua index 417a9f4..0a1169d 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -14,7 +14,11 @@ default.WATER_VISC = 1 default.LIGHT_MAX = 14 function default.log(text, type) - minetest.log("Pixture ["..type.."] "..text) + if type == "loaded" then + minetest.log("info", "Pixture ["..type.."] "..text) + else + minetest.log("action", "Pixture ["..type.."] "..text) + end end function default.dumpvec(v)