mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Add node pos to node damage HP change reason (#13196)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user