aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-09-19 18:55:25 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-09-19 18:55:25 +0200
commit950d2c9b3e10cbace9236e820c8119d1abb9e01f (patch)
treec0d9c1ca33c0251667d0a8cb59f25de65996dc69 /src/script/lua_api
parentfb4815c660d6d9cfc9df76a3ba763095b9701925 (diff)
downloaddragonfireclient-950d2c9b3e10cbace9236e820c8119d1abb9e01f.tar.xz
Add ClientObjectRef:remove and return true in on_object_add callback to remove newly added object
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_clientobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/lua_api/l_clientobject.cpp b/src/script/lua_api/l_clientobject.cpp
index c093e754e..d3739639a 100644
--- a/src/script/lua_api/l_clientobject.cpp
+++ b/src/script/lua_api/l_clientobject.cpp
@@ -338,4 +338,5 @@ luaL_Reg ClientObjectRef::methods[] = {luamethod(ClientObjectRef, get_pos),
luamethod(ClientObjectRef, get_hp),
luamethod(ClientObjectRef, get_max_hp), luamethod(ClientObjectRef, punch),
luamethod(ClientObjectRef, rightclick),
+ luamethod(ClientObjectRef, remove),
luamethod(ClientObjectRef, set_nametag_images), {0, 0}};