You've already forked ComfyFactorio
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user