Build 0.20.12.0
This commit is contained in:
@@ -224,8 +224,7 @@ namespace Barotrauma.Items.Components
|
||||
if (character == null) { return false; }
|
||||
if (character == Character.Controlled)
|
||||
{
|
||||
if (targetSections.Count == 0) { return false; }
|
||||
Spray(character, deltaTime, applyColors: true);
|
||||
Spray(character, deltaTime, applyColors: targetSections.Count > 0);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -987,11 +987,8 @@ namespace Barotrauma.Items.Components
|
||||
component.Color = borderComponent.OutlineColor = NoPowerColor;
|
||||
}
|
||||
|
||||
if (Voltage < MinVoltage) { continue; }
|
||||
|
||||
if (!component.Visible) { continue; }
|
||||
if (!(entity is Hull hull)) { continue; }
|
||||
|
||||
if (entity is not Hull hull) { continue; }
|
||||
if (!submarineContainer.Rect.Contains(component.Rect))
|
||||
{
|
||||
if (hull.Submarine.Info.Type != SubmarineType.Player)
|
||||
@@ -1001,6 +998,8 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
if (Voltage < MinVoltage) { continue; }
|
||||
|
||||
hullDatas.TryGetValue(hull, out HullData? hullData);
|
||||
if (hullData is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user