mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add node field to PlayerHPChangeReason table (#8368)
This commit is contained in:
parent
1e5f2e0f13
commit
22ad820aa4
5 changed files with 39 additions and 14 deletions
|
@ -404,6 +404,10 @@ void ScriptApiBase::pushPlayerHPChangeReason(lua_State *L, const PlayerHPChangeR
|
|||
objectrefGetOrCreate(L, reason.object);
|
||||
lua_setfield(L, -2, "object");
|
||||
}
|
||||
if (!reason.node.empty()) {
|
||||
lua_pushstring(L, reason.node.c_str());
|
||||
lua_setfield(L, -2, "node");
|
||||
}
|
||||
}
|
||||
|
||||
Server* ScriptApiBase::getServer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue