1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02: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
4 changed files with 10 additions and 2 deletions

View File

@@ -245,6 +245,7 @@ struct PlayerHPChangeReason
ServerActiveObject *object = nullptr;
// For NODE_DAMAGE
std::string node;
v3s16 node_pos;
inline bool hasLuaReference() const { return lua_reference >= 0; }
@@ -296,5 +297,5 @@ struct PlayerHPChangeReason
{
}
PlayerHPChangeReason(Type type, std::string node) : type(type), node(node) {}
PlayerHPChangeReason(Type type, std::string node, v3s16 node_pos) : type(type), node(node), node_pos(node_pos) {}
};