1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-02 00:10:21 +02:00

remove owner infotext if no owner present

This commit is contained in:
tenplus1
2022-02-05 12:25:01 +00:00
parent 18c7f0a422
commit 9f74408792
2 changed files with 10 additions and 8 deletions

View File

@ -28,7 +28,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20220120",
version = "20220205",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -785,7 +785,7 @@ function mob_class:update_tag()
end
self.infotext = "Health: " .. self.health .. " / " .. self.hp_max
.. "\n" .. "Owner: " .. self.owner
.. (self.owner == "" and "" or "\n" .. "Owner: " .. self.owner)
.. text
-- set changes