Fix journey mode / kick on death conflict
This fixes an issue where kick/ban on hardcore/mediumcore death penalties applied to journey mode characters unintentionally. Fixes #1901.
This commit is contained in:
parent
5a4526b10a
commit
720feed7af
2 changed files with 2 additions and 1 deletions
|
|
@ -3524,7 +3524,7 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
// Handle kicks/bans on mediumcore/hardcore deaths.
|
||||
if (args.TPlayer.difficulty != 0) // Player is not softcore
|
||||
if (args.TPlayer.difficulty == 1 || args.TPlayer.difficulty == 2) // Player is not softcore
|
||||
{
|
||||
bool mediumcore = args.TPlayer.difficulty == 1;
|
||||
bool shouldBan = mediumcore ? TShock.Config.BanOnMediumcoreDeath : TShock.Config.BanOnHardcoreDeath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue