From 436cd058ec2a3be3d18f13603085b9155dc3349a Mon Sep 17 00:00:00 2001 From: k0rd Date: Sun, 29 Jan 2012 08:39:42 -0500 Subject: [PATCH] We don't want to revert everything the player has done on the server in case of disable() for tilekill --- TShockAPI/TShock.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index abd70cb1..c4b4b4e0 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -492,6 +492,8 @@ namespace TShockAPI if (player.TileKillThreshold > 0) { player.TileKillThreshold = 0; + //We don't want to revert the entire map in case of a disable. + player.TilesDestroyed.Clear(); } if (player.TilesCreated != null) { @@ -1429,4 +1431,4 @@ namespace TShockAPI Utils.HashAlgo = file.HashAlgorithm; } } -} \ No newline at end of file +}