mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 07:54:52 +09:00
Fixed Time On Inventory Search
This commit is contained in:
1 parent
2abd5cc1bb
commit
cb85ebfd2b
1 file changed
+5
-4
@@ -58,8 +58,9 @@ local function search_player(player)
|
||||
end
|
||||
|
||||
Event.register(defines.events.on_tick,function(event)
|
||||
if not (game.tick%3600)==0 then return end
|
||||
local players = game.connected_players
|
||||
local player = players[math.random(#players)]
|
||||
search_player(player)
|
||||
if (game.tick%3600) == 0 then
|
||||
local players = game.connected_players
|
||||
local player = players[math.random(#players)]
|
||||
search_player(player)
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user