mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-16 16:30:42 +09:00
Fix body marker not appearing when bonus respawn is applied
This commit is contained in:
1 parent
df4aef6992
commit
1191de2c86
1 file changed
+2
@@ -55,5 +55,7 @@ Event.register(defines.events.on_pre_player_died,function(event)
|
||||
local player = Game.get_player(event)
|
||||
if Ranking.get_rank(player):allowed('bonus-respawn') then
|
||||
player.ticks_to_respawn = 120
|
||||
-- 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})
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user