mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Add entity name to debug box
This commit is contained in:
parent
6948b77226
commit
3c6d79ecb3
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ end
|
||||||
function mob_class:update_tag() --update nametag and/or the debug box
|
function mob_class:update_tag() --update nametag and/or the debug box
|
||||||
local tag
|
local tag
|
||||||
if mobs_debug then
|
if mobs_debug then
|
||||||
tag = "nametag = '"..tostring(self.nametag).."'\n"..
|
local name = self.name
|
||||||
|
if self.nametag and self.nametag ~= "" then
|
||||||
|
name = self.nametag
|
||||||
|
end
|
||||||
|
tag = "name = '"..tostring(name).."'\n"..
|
||||||
"state = '"..tostring(self.state).."'\n"..
|
"state = '"..tostring(self.state).."'\n"..
|
||||||
"order = '"..tostring(self.order).."'\n"..
|
"order = '"..tostring(self.order).."'\n"..
|
||||||
"attack = "..tostring(self.attack).."\n"..
|
"attack = "..tostring(self.attack).."\n"..
|
||||||
|
|
Loading…
Reference in a new issue