fix oneshot
This commit is contained in:
parent
4a0acef237
commit
90edabc9d5
21
init.lua
21
init.lua
@ -115,20 +115,19 @@ function vote.check_vote(voteset)
|
|||||||
local ignored_players = storage:get_string("ignored_players"):split(" ")
|
local ignored_players = storage:get_string("ignored_players"):split(" ")
|
||||||
for _, player in pairs(players) do
|
for _, player in pairs(players) do
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local is_ignored = false
|
if not voteset.results.voted[name] then
|
||||||
for _, ignored_name in ipairs(ignored_players) do
|
local is_ignored = false
|
||||||
if name == ignored_name then
|
for _, ignored_name in ipairs(ignored_players) do
|
||||||
is_ignored = true
|
if name == ignored_name then
|
||||||
|
is_ignored = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if not is_ignored then
|
||||||
|
all_players_voted = false
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if is_ignored then
|
|
||||||
break
|
|
||||||
end
|
|
||||||
if not voteset.results.voted[name] then
|
|
||||||
all_players_voted = false
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if all_players_voted then
|
if all_players_voted then
|
||||||
|
Loading…
Reference in New Issue
Block a user