Merge branch 'general-devel' into patch-13

This commit is contained in:
Chris 2020-06-05 12:09:14 +09:30 committed by GitHub
commit 5e3f70382d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -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))
{