Make nametag removable with set_nametag_attributes (#5021)
parent
430d3b28e4
commit
5d60a6c533
|
@ -789,8 +789,7 @@ int ObjectRef::l_set_nametag_attributes(lua_State *L)
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|
||||||
std::string nametag = getstringfield_default(L, 2, "text", "");
|
std::string nametag = getstringfield_default(L, 2, "text", "");
|
||||||
if (nametag != "")
|
prop->nametag = nametag;
|
||||||
prop->nametag = nametag;
|
|
||||||
|
|
||||||
co->notifyObjectPropertiesModified();
|
co->notifyObjectPropertiesModified();
|
||||||
lua_pushboolean(L, true);
|
lua_pushboolean(L, true);
|
||||||
|
|
Loading…
Reference in New Issue