mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add node field to PlayerHPChangeReason table (#8368)
This commit is contained in:
committed by
rubenwardy
parent
1e5f2e0f13
commit
22ad820aa4
@@ -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()
|
||||
|
Reference in New Issue
Block a user