mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 00:24:52 +09:00
Fixed rank:print()
This commit is contained in:
1 parent
1859b9ca9b
commit
9feda46d5e
3 files changed
+13
-6
No files matched your search
@@ -218,14 +218,15 @@ function Ranking._rank:print(rtn)
|
||||
else
|
||||
-- using threads to make less lag
|
||||
local thread = Server.new_thread{data={rank=self,rtn=rtn}}
|
||||
thread.on_event('resolve',function(thread)
|
||||
return self.data:get_players(true)
|
||||
thread:on_event('resolve',function(thread)
|
||||
return thread.data.rank:get_players(true)
|
||||
end)
|
||||
thread.on_event('success',function(thread,players)
|
||||
thread:on_event('success',function(thread,players)
|
||||
for _,player in pairs(players) do
|
||||
player_return(rtn,player)
|
||||
player_return(thread.data.rtn,player)
|
||||
end
|
||||
end)
|
||||
thread:queue()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user