Update PlayerDeathMessage.cs

This commit is contained in:
Mister_Nebula 2021-12-31 11:06:16 +00:00
parent 839b92a9d1
commit ed2d1f1683

View File

@ -11,7 +11,11 @@ namespace QSB.DeathSync.Messages
{
private int NecronomiconIndex;
public PlayerDeathMessage(DeathType type) => NecronomiconIndex = Necronomicon.GetRandomIndex(type);
public PlayerDeathMessage(DeathType type)
{
Value = type;
NecronomiconIndex = Necronomicon.GetRandomIndex(type);
}
public override void Serialize(QNetworkWriter writer)
{