v1.6.17.0 (Unto the Breach update)
This commit is contained in:
@@ -94,9 +94,9 @@ namespace Barotrauma.Items.Components
|
||||
set
|
||||
{
|
||||
if (isOn == value && IsActive == value) { return; }
|
||||
|
||||
IsActive = isOn = value;
|
||||
SetLightSourceState(value, value ? lightBrightness : 0.0f);
|
||||
bool isLightOn = isOn && item.Condition > 0;
|
||||
SetLightSourceState(isLightOn, isLightOn ? lightBrightness : 0.0f);
|
||||
OnStateChanged();
|
||||
}
|
||||
}
|
||||
@@ -259,7 +259,6 @@ namespace Barotrauma.Items.Components
|
||||
#endif
|
||||
|
||||
IsActive = IsOn;
|
||||
item.AddTag("light");
|
||||
}
|
||||
|
||||
public override void OnItemLoaded()
|
||||
|
||||
Reference in New Issue
Block a user