Don't crash the server if there's an error.

This commit is contained in:
Samuel Sieb 2013-04-26 12:39:31 -07:00
parent 29b6a02fca
commit 34b20d823d

@ -317,10 +317,11 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
or not( travelnet.targets[ owner_name ][ station_network ] )) then
minetest.chat_send_player(puncher_name, "Error: There is something wrong with the configuration of this station. "..
minetest.chat_send_player(name, "Error: There is something wrong with the configuration of this station. "..
" DEBUG DATA: owner: "..( owner_name or "?")..
" station_name: "..(station_name or "?")..
" station_network: "..(station_network or "?")..".");
return
end
-- if the target station is gone