mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed On_tick
This commit is contained in:
@@ -241,7 +241,7 @@ Event.register(defines.events.on_tick,function(event)
|
|||||||
if not _reports().remove_warnings_time then
|
if not _reports().remove_warnings_time then
|
||||||
_reports().remove_warnings_time = {}
|
_reports().remove_warnings_time = {}
|
||||||
local highest = nil
|
local highest = nil
|
||||||
for power,rank in pairs(Ranking._rank) do
|
for power,rank in pairs(Ranking._ranks()) do
|
||||||
if not highest and not rank:allowed('no-report') then highest = power+1 end
|
if not highest and not rank:allowed('no-report') then highest = power+1 end
|
||||||
local _power = power; if highest then _power = highest-power end
|
local _power = power; if highest then _power = highest-power end
|
||||||
if rank:allowed('no-report') then _reports().remove_warnings_time[power] = 0
|
if rank:allowed('no-report') then _reports().remove_warnings_time[power] = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user