changed logging a bit and changed armor player skin

This commit is contained in:
kaadmy 2015-10-01 12:25:21 -07:00
parent cca9c411bd
commit 3f7ad2db09
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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)