tweak playertags again
This commit is contained in:
parent
f8060889ec
commit
6475968825
@ -57,6 +57,9 @@ local nametag = {
|
|||||||
|
|
||||||
function nametag:on_step(dtime)
|
function nametag:on_step(dtime)
|
||||||
local wielder = self.wielder
|
local wielder = self.wielder
|
||||||
|
wielder:set_nametag_attributes({
|
||||||
|
color = {a = 0, r = 0, g = 0, b = 0}
|
||||||
|
})
|
||||||
if wielder == nil then
|
if wielder == nil then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
elseif minetest.get_player_by_name(wielder:get_player_name()) == nil then
|
elseif minetest.get_player_by_name(wielder:get_player_name()) == nil then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user