From 73391013f7fbc0558b96146e2014bdcf3c675e4d Mon Sep 17 00:00:00 2001 From: Riley Adams Date: Mon, 10 Apr 2023 18:04:52 -0400 Subject: Add node pos to node damage HP change reason (#13196) --- src/script/cpp_api/s_base.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/cpp_api/s_base.cpp') 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"); } } -- cgit v1.2.3