mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Fixed Existing Lua Check Errors
This commit is contained in:
@@ -57,7 +57,7 @@ Event.add(defines.events.on_tick, function()
|
||||
local max_remove = math.floor(head/100)+1
|
||||
local remove_count = math.random(0, max_remove)
|
||||
while remove_count > 0 and head > 0 do
|
||||
local remove_index = math.random(1,head)
|
||||
local remove_index = math.random(1, head)
|
||||
local entity = tree_queue[remove_index]
|
||||
tree_queue[remove_index] = tree_queue[head]
|
||||
head = head - 1
|
||||
@@ -71,7 +71,7 @@ end)
|
||||
|
||||
-- Clear the chache
|
||||
Event.on_nth_tick(300, function()
|
||||
for key,_ in pairs(chache) do
|
||||
for key, _ in pairs(chache) do
|
||||
chache[key] = nil
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user