Require two flags before being able to export

This commit is contained in:
rubenwardy 2018-06-23 15:54:00 +01:00
parent 493a11a213
commit b4be27e4a5
No known key found for this signature in database
GPG key ID: A1E29D52FF81513C

View file

@ -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...")