From 0dad2c863b021b9c3d4911188106c09c1855ef00 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 30 May 2018 16:44:35 +0200 Subject: [PATCH] Fix powernet spreading edge cases. --- .../GameObjects/Components/Power/PowerTransferComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameObjects/Components/Power/PowerTransferComponent.cs b/Content.Server/GameObjects/Components/Power/PowerTransferComponent.cs index 877c68b516..28411d18d9 100644 --- a/Content.Server/GameObjects/Components/Power/PowerTransferComponent.cs +++ b/Content.Server/GameObjects/Components/Power/PowerTransferComponent.cs @@ -45,7 +45,7 @@ namespace Content.Server.GameObjects.Components.Power { var _emanager = IoCManager.Resolve(); var position = Owner.GetComponent().WorldPosition; - var wires = _emanager.GetEntitiesInRange(Owner, 0.1f) //arbitrarily low, just scrape things //wip + var wires = _emanager.GetEntitiesInRange(Owner, 1.1f) //arbitrarily low, just scrape things //wip .Where(x => x.HasComponent()); //we have no parent so lets find a partner we can join his powernet @@ -93,7 +93,7 @@ namespace Content.Server.GameObjects.Components.Power if (ptc.Parent == null || Regenerating) { ptc.ConnectToPowernet(Parent); - SpreadPowernet(); + ptc.SpreadPowernet(); } else if (ptc.Parent != Parent && !ptc.Parent.Dirty) {