18 lines
563 B
C#
18 lines
563 B
C#
using NitroxClient.Communication.Packets.Processors.Abstract;
|
|
using NitroxClient.MonoBehaviours;
|
|
using NitroxModel.Packets;
|
|
using NitroxModel_Subnautica.DataStructures;
|
|
|
|
namespace NitroxClient.Communication.Packets.Processors;
|
|
|
|
public class LeakRepairedProcessor : ClientPacketProcessor<LeakRepaired>
|
|
{
|
|
public override void Process(LeakRepaired packet)
|
|
{
|
|
if (NitroxEntity.TryGetComponentFrom(packet.BaseId, out BaseLeakManager baseLeakManager))
|
|
{
|
|
baseLeakManager.HealLeakToMax(packet.RelativeCell.ToUnity());
|
|
}
|
|
}
|
|
}
|