diff --git a/mods/ctf_map/map_maker.lua b/mods/ctf_map/map_maker.lua index 91b90bd..370a3ea 100644 --- a/mods/ctf_map/map_maker.lua +++ b/mods/ctf_map/map_maker.lua @@ -264,6 +264,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end if fields.export then + if #flag_positions ~= 2 then + minetest.chat_send_all("You need to place two flags!") + return + end + we_select(player_name) show_progress_formspec(player_name, "Exporting...")