From 616d0f60d70b0172bc2780a32ebd50861452bff3 Mon Sep 17 00:00:00 2001 From: ricky Date: Mon, 20 Jun 2011 11:18:45 +1000 Subject: [PATCH] Fridge, only stop accepting messages from player that is acutally going to be kicked/banned. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index bbccdd57..2dfb1736 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -348,7 +348,7 @@ namespace TShockAPI Debug.WriteLine("{0:X} ({2}): {3} ({1:XX})", player.Index, (byte)type, player.TPlayer.dead ? "dead " : "alive", type.ToString()); // Stop accepting updates from player as this player is going to be kicked/banned during OnUpdate (different thread so can produce race conditions) - if (player.TileThreshold >= 20 && !player.Group.HasPermission("ignoregriefdetection")) + if ((ConfigurationManager.BanTnt || ConfigurationManager.KickTnt) && player.TileThreshold >= 20 && !player.Group.HasPermission("ignoregriefdetection")) { Log.Debug("Rejecting " + type + " from " + player.Name + " as this player is about to be kicked"); e.Handled = true;