aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authorRiley Adams <radar6255@yahoo.com>2023-04-10 18:04:52 -0400
committerGitHub <noreply@github.com>2023-04-10 23:04:52 +0100
commit73391013f7fbc0558b96146e2014bdcf3c675e4d (patch)
tree194359ce008c07fc25e971cf68d496907c5812e3 /src/script/cpp_api
parent1d88d85f1c132fc0c84cb19f5540ebab822c9c58 (diff)
downloadminetest-73391013f7fbc0558b96146e2014bdcf3c675e4d.tar.xz
Add node pos to node damage HP change reason (#13196)
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_base.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_base.cpp b/src/script/cpp_api/s_base.cpp
index b91f59613..c2b2f8a90 100644
--- a/src/script/cpp_api/s_base.cpp
+++ b/src/script/cpp_api/s_base.cpp
@@ -488,6 +488,9 @@ void ScriptApiBase::pushPlayerHPChangeReason(lua_State *L, const PlayerHPChangeR
if (!reason.node.empty()) {
lua_pushstring(L, reason.node.c_str());
lua_setfield(L, -2, "node");
+
+ push_v3s16(L, reason.node_pos);
+ lua_setfield(L, -2, "node_pos");
}
}