aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_node.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-26 17:38:31 +0200
committersfan5 <sfan5@live.de>2020-05-27 21:58:40 +0200
commit471e567657dfd75a994a1b54d7a23cf4541a6bed (patch)
tree1b909e24669141f3fba2a6d98c68e22f1288249b /src/script/cpp_api/s_node.h
parent2fd5f38c45a3b57a9ea2d566aa50f9e5c33794d2 (diff)
downloadhax-minetest-server-471e567657dfd75a994a1b54d7a23cf4541a6bed.tar.gz
hax-minetest-server-471e567657dfd75a994a1b54d7a23cf4541a6bed.zip
Value copy / allocation optimizations mostly in server, SAO and serialize code
Diffstat (limited to 'src/script/cpp_api/s_node.h')
-rw-r--r--src/script/cpp_api/s_node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_node.h b/src/script/cpp_api/s_node.h
index e7c0c01d1..81b44f0f0 100644
--- a/src/script/cpp_api/s_node.h
+++ b/src/script/cpp_api/s_node.h
@@ -36,7 +36,7 @@ public:
virtual ~ScriptApiNode() = default;
bool node_on_punch(v3s16 p, MapNode node,
- ServerActiveObject *puncher, PointedThing pointed);
+ ServerActiveObject *puncher, const PointedThing &pointed);
bool node_on_dig(v3s16 p, MapNode node,
ServerActiveObject *digger);
void node_on_construct(v3s16 p, MapNode node);