diff options
author | Riley Adams <radar6255@yahoo.com> | 2023-04-10 18:04:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 23:04:52 +0100 |
commit | 73391013f7fbc0558b96146e2014bdcf3c675e4d (patch) | |
tree | 194359ce008c07fc25e971cf68d496907c5812e3 /src/script/cpp_api | |
parent | 1d88d85f1c132fc0c84cb19f5540ebab822c9c58 (diff) | |
download | minetest-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.cpp | 3 |
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"); } } |