Files
Nitrox/NitroxClient/Communication/Packets/Processors/Abstract/KeepInventoryChangedProcessor.cs
2025-07-06 00:23:46 +02:00

20 lines
530 B
C#

using NitroxClient.GameLogic;
using NitroxModel.Packets;
namespace NitroxClient.Communication.Packets.Processors.Abstract;
public class KeepInventoryChangedProcessor : ClientPacketProcessor<KeepInventoryChanged>
{
private readonly LocalPlayer localPlayer;
public KeepInventoryChangedProcessor(LocalPlayer localPlayer)
{
this.localPlayer = localPlayer;
}
public override void Process(KeepInventoryChanged packet)
{
localPlayer.KeepInventoryOnDeath = packet.KeepInventoryOnDeath;
}
}