mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-05 07:03:48 +01:00
Don't crash the server if there's an error.
This commit is contained in:
parent
29b6a02fca
commit
34b20d823d
3
init.lua
3
init.lua
@ -317,10 +317,11 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
|
|||||||
or not( travelnet.targets[ owner_name ][ station_network ] )) then
|
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 "?")..
|
" DEBUG DATA: owner: "..( owner_name or "?")..
|
||||||
" station_name: "..(station_name or "?")..
|
" station_name: "..(station_name or "?")..
|
||||||
" station_network: "..(station_network or "?")..".");
|
" station_network: "..(station_network or "?")..".");
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if the target station is gone
|
-- if the target station is gone
|
||||||
|
Loading…
Reference in New Issue
Block a user