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

spam protect - on reset clear all players and then add them again

This commit is contained in:
Gerkiz
2020-12-15 07:34:07 +01:00
parent 03e81fd39b
commit e65726d120
+1
View File
@@ -16,6 +16,7 @@ Global.register(
function Public.reset_spam_table()
local players = game.connected_players
this.prevent_spam = {}
for i = 1, #players do
local player = players[i]
this.prevent_spam[player.index] = game.tick