Number of bug fixes

This commit is contained in:
Cooldude2606
2020-04-08 15:32:41 +01:00
parent 9214cc5239
commit b04d7fe040
5 changed files with 41 additions and 10 deletions

View File

@@ -333,4 +333,12 @@ Event.add(defines.events.on_player_joined_game,function(event)
if not player.opened then
player.gui.center.clear()
end
end)
--- When a player respawns clear center unless the player has something open
Event.add(defines.events.on_player_respawned,function(event)
local player = Game.get_player_by_index(event.player_index)
if not player.opened then
player.gui.center.clear()
end
end)