fix singulo combining debug assert (#24602)
* fix singulo combining debug assert * oh that wasnt useless --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
eabe1f6e47
commit
4f186fc18b
|
|
@ -292,7 +292,7 @@ public sealed class SingularitySystem : SharedSingularitySystem
|
||||||
// Should be slightly more efficient than checking literally everything we consume for a singularity component and doing the reverse.
|
// Should be slightly more efficient than checking literally everything we consume for a singularity component and doing the reverse.
|
||||||
if (EntityManager.TryGetComponent<SingularityComponent>(args.EventHorizonUid, out var singulo))
|
if (EntityManager.TryGetComponent<SingularityComponent>(args.EventHorizonUid, out var singulo))
|
||||||
{
|
{
|
||||||
AdjustEnergy(uid, comp.Energy, singularity: singulo);
|
AdjustEnergy(args.EventHorizonUid, comp.Energy, singularity: singulo);
|
||||||
SetEnergy(uid, 0.0f, comp);
|
SetEnergy(uid, 0.0f, comp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue