mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Make nametag removable with set_nametag_attributes (#5021)
This commit is contained in:
@@ -789,7 +789,6 @@ 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();
|
||||||
|
Reference in New Issue
Block a user