changed logging a bit and changed armor player skin
This commit is contained in:
parent
cca9c411bd
commit
3f7ad2db09
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user