We don't want to revert everything the player has done on the server in case of disable() for tilekill
This commit is contained in:
parent
937b596dbe
commit
436cd058ec
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue