Predict gasthermomachines (#33837)
* Predict gasthermomachines * despawn * smellby
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
using Content.Client.Power.Components;
|
||||
using Content.Shared.Power.Components;
|
||||
using Content.Shared.Power.EntitySystems;
|
||||
|
||||
namespace Content.Client.Power.EntitySystems;
|
||||
|
||||
public sealed class PowerNetSystem : SharedPowerNetSystem
|
||||
{
|
||||
public override bool IsPoweredCalculate(SharedApcPowerReceiverComponent comp)
|
||||
{
|
||||
return IsPoweredCalculate((ApcPowerReceiverComponent)comp);
|
||||
}
|
||||
|
||||
private bool IsPoweredCalculate(ApcPowerReceiverComponent comp)
|
||||
{
|
||||
return !comp.PowerDisabled
|
||||
&& !comp.NeedsPower;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user