Fixed Instant Respawn

This commit is contained in:
Cooldude2606
2018-04-18 20:12:15 +01:00
parent 7e887cb7dc
commit e36d70f6d4

View File

@@ -51,9 +51,9 @@ Event.register(defines.events.on_player_respawned,function(event)
end end
end) end)
Event.register(defines.events.on_player_died,function(event) Event.register(defines.events.on_pre_player_died,function(event)
local player = Game.get_player(event) local player = Game.get_player(event)
if Ranking.get_rank(player):allowed('bonus-respawn') then if Ranking.get_rank(player):allowed('bonus-respawn') then
player.ticks_to_respawn = 0 player.ticks_to_respawn = nil
end end
end) end)