Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make nametag removable with set_nametag_attributes (#5021)
  • Loading branch information
Rui authored and nerzhul committed Jan 11, 2017
1 parent 430d3b2 commit 5d60a6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/script/lua_api/l_object.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5d60a6c

Please sign in to comment.