mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
on_death: Fix callback number of pushed arguments (Fixes #6451)
This commit is contained in:
@@ -283,7 +283,7 @@ bool ScriptApiEntity::luaentity_on_death(u16 id, ServerActiveObject *killer)
|
|||||||
objectrefGetOrCreate(L, killer); // killer reference
|
objectrefGetOrCreate(L, killer); // killer reference
|
||||||
|
|
||||||
setOriginFromTable(object);
|
setOriginFromTable(object);
|
||||||
PCALL_RES(lua_pcall(L, 6, 1, error_handler));
|
PCALL_RES(lua_pcall(L, 2, 1, error_handler));
|
||||||
|
|
||||||
bool retval = lua_toboolean(L, -1);
|
bool retval = lua_toboolean(L, -1);
|
||||||
lua_pop(L, 2); // Pop object and error handler
|
lua_pop(L, 2); // Pop object and error handler
|
||||||
|
Reference in New Issue
Block a user