Skip to content

Commit 5d60a6c

Browse files
Ruinerzhul
Rui
authored andcommittedJan 11, 2017
Make nametag removable with set_nametag_attributes (#5021)
1 parent 430d3b2 commit 5d60a6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/script/lua_api/l_object.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,7 @@ int ObjectRef::l_set_nametag_attributes(lua_State *L)
789789
lua_pop(L, 1);
790790

791791
std::string nametag = getstringfield_default(L, 2, "text", "");
792-
if (nametag != "")
793-
prop->nametag = nametag;
792+
prop->nametag = nametag;
794793

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

0 commit comments

Comments
 (0)
Please sign in to comment.