1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add node pos to node damage HP change reason (#13196)

This commit is contained in:
Riley Adams 2023-04-10 18:04:52 -04:00 committed by GitHub
parent 1d88d85f1c
commit 73391013f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View file

@ -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");
}
}