tweak playertags again

This commit is contained in:
Elkien3 2018-01-20 09:04:19 -06:00
parent f8060889ec
commit 6475968825

View File

@ -57,6 +57,9 @@ local nametag = {
function nametag:on_step(dtime)
local wielder = self.wielder
wielder:set_nametag_attributes({
color = {a = 0, r = 0, g = 0, b = 0}
})
if wielder == nil then
self.object:remove()
elseif minetest.get_player_by_name(wielder:get_player_name()) == nil then