Skip to content

Commit 8a582a7

Browse files
committed
Fix issues with modes that have a set amount of rounds
1 parent e635b4b commit 8a582a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mods/ctf/ctf_modebase/mode_vote.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ function ctf_modebase.mode_vote.start_vote()
129129
timer = minetest.after(VOTING_TIME, ctf_modebase.mode_vote.end_vote)
130130
formspec_send_timer = minetest.after(2, send_formspec)
131131
else
132-
ctf_modebase.current_mode_matches = mode_defined_rounds
133-
ctf_modebase.mode_on_next_match = new_mode
134-
ctf_modebase.start_match_after_vote()
132+
votes = {mode_defined_rounds}
133+
ctf_modebase.mode_vote.end_vote()
135134
end
136135
end
137136

0 commit comments

Comments
 (0)