Skip to content
Permalink
Browse files

Make nametag removable with set_nametag_attributes (#5021)

  • Loading branch information
Rui-Minetest authored and nerzhul committed Jan 11, 2017
1 parent 430d3b2 commit 5d60a6c533efb572a4004d110536da63bb62c58a
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/script/lua_api/l_object.cpp
@@ -789,8 +789,7 @@ int ObjectRef::l_set_nametag_attributes(lua_State *L)
lua_pop(L, 1);

std::string nametag = getstringfield_default(L, 2, "text", "");
if (nametag != "")
prop->nametag = nametag;
prop->nametag = nametag;

co->notifyObjectPropertiesModified();
lua_pushboolean(L, true);

0 comments on commit 5d60a6c

Please sign in to comment.
You can’t perform that action at this time.