mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-24 23:43:12 +09:00
Fixed Instant Respawn
This commit is contained in:
1 parent
7e887cb7dc
commit
e36d70f6d4
1 file changed
+2
-2
@@ -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