Fix active-wire error (#13632)
This commit is contained in:
@@ -314,6 +314,9 @@ public sealed class WiresSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
foreach (var (owner, activeWires) in _activeWires)
|
foreach (var (owner, activeWires) in _activeWires)
|
||||||
{
|
{
|
||||||
|
if (!HasComp<WiresComponent>(owner))
|
||||||
|
_activeWires.Remove(owner);
|
||||||
|
|
||||||
foreach (var wire in activeWires)
|
foreach (var wire in activeWires)
|
||||||
{
|
{
|
||||||
if (wire.CancelToken.IsCancellationRequested)
|
if (wire.CancelToken.IsCancellationRequested)
|
||||||
|
|||||||
Reference in New Issue
Block a user