mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Add cause missing cause property to death event
This commit is contained in:
@@ -56,6 +56,6 @@ Event.register(defines.events.on_pre_player_died,function(event)
|
|||||||
if Ranking.get_rank(player):allowed('bonus-respawn') then
|
if Ranking.get_rank(player):allowed('bonus-respawn') then
|
||||||
player.ticks_to_respawn = 120
|
player.ticks_to_respawn = 120
|
||||||
-- manually dispatch death event because it is not fired when ticks_to_respawn is set pre death
|
-- manually dispatch death event because it is not fired when ticks_to_respawn is set pre death
|
||||||
Event.dispatch({name = defines.events.on_player_died, tick = event.tick, player_index = event.player_index})
|
Event.dispatch({name = defines.events.on_player_died, tick = event.tick, player_index = event.player_index, cause = event.cause})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
Reference in New Issue
Block a user