mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-08-20 13:34:20 +02:00
Don't crash the server if there's an error.
This commit is contained in:
parent
29b6a02fca
commit
34b20d823d
9
init.lua
9
init.lua
@ -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. "..
|
||||
" DEBUG DATA: owner: "..( owner_name or "?")..
|
||||
" station_name: "..(station_name or "?")..
|
||||
" station_network: "..(station_network or "?")..".");
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user