From bcdd0dc8be9b3985bdc37824d7832a51671cf05a Mon Sep 17 00:00:00 2001 From: Patrikkk Date: Fri, 5 Jun 2020 03:46:04 +0200 Subject: [PATCH] GetDataHandler - Add missing PlayerInfo data. --- TShockAPI/GetDataHandlers.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 496a7053..931167c0 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2142,14 +2142,20 @@ namespace TShockAPI byte difficulty = 0; if (extra[0]) { - difficulty++; + difficulty = 1; } else if (extra[1]) { - difficulty += 2; + difficulty = 2; + } + else if (extra[3]) + { + difficulty = 3; } - bool extraSlot = extra[2]; + BitsByte torchFlags = args.Data.ReadInt8(); + bool usingBiomeTorches = torchFlags[0]; + bool happyFunTorchTime = torchFlags[1]; if (OnPlayerInfo(args.Player, args.Data, playerid, hair, skinVariant, difficulty, name)) {