mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed Instant Respawn
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user