first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user