mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-30 11:13:48 +01:00
fixed bug with attaching travelnets to networks owned by others
This commit is contained in:
parent
4cded704e8
commit
67c44ab210
2
init.lua
2
init.lua
@ -707,7 +707,7 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
|
||||
-- if the box has not been configured yet
|
||||
if( meta:get_string("station_network")=="" ) then
|
||||
|
||||
travelnet.add_target( fields.station_name, fields.station_network, pos, name, meta, fields.owner_name );
|
||||
travelnet.add_target( fields.station_name, fields.station_network, pos, name, meta, fields.owner );
|
||||
return;
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user