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:
Lucas Nicodemus 2020-05-26 22:22:41 -07:00
parent 5a4526b10a
commit 720feed7af
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB
2 changed files with 2 additions and 1 deletions

View file

@ -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;