commit
44b2c928bd
@ -135,10 +135,12 @@ minetest.register_globalstep(
|
|||||||
local model = model_name and models[model_name]
|
local model = model_name and models[model_name]
|
||||||
local controls = player:get_player_control()
|
local controls = player:get_player_control()
|
||||||
|
|
||||||
if controls.sneak then
|
if player_sneak[name] ~= controls.sneak then
|
||||||
player:set_nametag_attributes({color = {a = 30, r = 255, g = 255, b = 255}})
|
if controls.sneak then
|
||||||
else
|
player:set_nametag_attributes({color = {a = 30, r = 255, g = 255, b = 255}})
|
||||||
player:set_nametag_attributes({color = {a = 255, r = 255, g = 255, b = 255}})
|
else
|
||||||
|
player:set_nametag_attributes({color = {a = 255, r = 255, g = 255, b = 255}})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if model and not player_attached[name] then
|
if model and not player_attached[name] then
|
||||||
|
Loading…
Reference in New Issue
Block a user