Eco-Russian-Community / EcoConveyance

Conveyor mod
2 stars 2 forks source link

importer/exporter storage component range work #16

Closed StallEF closed 2 years ago

StallEF commented 2 years ago

Since server admins practice changing the range for the storage component, this causes the use of lines not to be used, so a fixed range 2 needs to be added.

var storage = this.GetComponent<PublicStorageComponent>();
this.GetComponent<LinkComponent>().Initialize(2);
storage.Initialize(2);
Tavren commented 2 years ago

currently they have this.GetComponent<LinkComponent>().Initialize(1); that not change anything as even without increased range, importer and exporter can be placed in standard radius need to make additional check for adjacency