aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authornerzhul <loic.blot@unix-experience.fr>2017-03-13 15:55:30 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commit44ca9c9cb2079fa97068adb8ee894c5ae13a9975 (patch)
tree843345db2e348c8cd89fdff88f6ee88e7dbecd13 /src/script/cpp_api
parent0727bb3ddd9c550ff962af4546bac8cc058bce73 (diff)
downloadminetest-44ca9c9cb2079fa97068adb8ee894c5ae13a9975.tar.gz
minetest-44ca9c9cb2079fa97068adb8ee894c5ae13a9975.tar.bz2
minetest-44ca9c9cb2079fa97068adb8ee894c5ae13a9975.zip
[CSM] Add enable_client_modding param (default: false)
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp
index 8c5e3796b..154dd6194 100644
--- a/src/script/cpp_api/s_client.cpp
+++ b/src/script/cpp_api/s_client.cpp
@@ -155,8 +155,7 @@ bool ScriptApiClient::on_dignode(v3s16 p, MapNode node)
// Call functions
runCallbacks(2, RUN_CALLBACKS_MODE_OR);
- bool blocked = lua_toboolean(L, -1);
- return blocked;
+ return lua_toboolean(L, -1);
}
bool ScriptApiClient::on_punchnode(v3s16 p, MapNode node)