aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-11-24 16:01:04 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-11-24 16:01:04 +0100
commit1ccf88e80a3a07570b02723afc90dc87a647a051 (patch)
treed6978c9bc15db01937705391624e4960c8cdd2e3 /src/script/lua_api
parentc8900e169a1ddceec07a449f1ae7c4322ff02036 (diff)
downloaddragonfireclient-1ccf88e80a3a07570b02723afc90dc87a647a051.tar.xz
minetest.dig_node: Remove node
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 916983982..1d769c73e 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -455,6 +455,7 @@ int ModApiClient::l_dig_node(lua_State *L)
pointed.node_undersurface = pos;
client->interact(INTERACT_START_DIGGING, pointed);
client->interact(INTERACT_DIGGING_COMPLETED, pointed);
+ client->removeNode(pos);
return 0;
}