1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2026-06-20 16:32:28 +02:00

groups - better reset

This commit is contained in:
Gerkiz
2020-12-14 17:31:35 +01:00
parent 33986059fc
commit c2c06f3c47
+6 -2
View File
@@ -305,8 +305,12 @@ function Public.alphanumeric_only(value)
end
function Public.reset_groups()
this.player_group = {}
this.join_spam_protection = {}
local players = game.connected_players
for i = 1, #players do
local player = players[i]
this.player_group[player.name] = '[Group]'
this.join_spam_protection[player.name] = game.tick
end
this.tag_groups = {}
end