PA Fixes (#18116)
* PA Fixes Fix exception when opening UI if it has the power limiter warning displayed. Fix it sometimes not detecting parts due to angles not getting normalized before comparison. * Fix swapped out sprites for PA emitter P0 states
This commit is contained in:
committed by
GitHub
parent
a356d9b1fd
commit
23966e1dff
@@ -409,7 +409,7 @@ namespace Content.Client.ParticleAccelerator.UI
|
|||||||
if (_maxStrength > 3 && enabled && assembled)
|
if (_maxStrength > 3 && enabled && assembled)
|
||||||
{
|
{
|
||||||
_shouldContinueAnimating = true;
|
_shouldContinueAnimating = true;
|
||||||
if (!_alarmControl.Visible)
|
if (!_alarmControl.HasRunningAnimation("warningAnim"))
|
||||||
_alarmControl.PlayAnimation(_alarmControlAnimation, "warningAnim");
|
_alarmControl.PlayAnimation(_alarmControlAnimation, "warningAnim");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ public sealed partial class ParticleAcceleratorSystem
|
|||||||
{
|
{
|
||||||
if (compQuery.TryGetComponent(entity, out comp)
|
if (compQuery.TryGetComponent(entity, out comp)
|
||||||
&& TryComp<ParticleAcceleratorPartComponent>(entity, out var partState) && partState.Master == null
|
&& TryComp<ParticleAcceleratorPartComponent>(entity, out var partState) && partState.Master == null
|
||||||
&& (rotation == null || MathHelper.CloseTo(Transform(entity).LocalRotation.Theta, rotation!.Value.Theta)))
|
&& (rotation == null || Transform(entity).LocalRotation.EqualsApprox(rotation!.Value.Theta)))
|
||||||
{
|
{
|
||||||
part = entity;
|
part = entity;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 359 B |
Binary file not shown.
|
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 359 B |
Reference in New Issue
Block a user