mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-30 19:23:44 +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 the box has not been configured yet
|
||||||
if( meta:get_string("station_network")=="" ) then
|
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;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user