Require two flags before being able to export
This commit is contained in:
parent
493a11a213
commit
b4be27e4a5
1 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields.export then
|
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)
|
we_select(player_name)
|
||||||
show_progress_formspec(player_name, "Exporting...")
|
show_progress_formspec(player_name, "Exporting...")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue