Added null checks for tile destroyed check.
This commit is contained in:
parent
554eb464f1
commit
aa3a491dab
1 changed files with 12 additions and 9 deletions
|
|
@ -198,6 +198,8 @@ namespace TShockAPI
|
|||
foreach (TSPlayer player in TShock.Players)
|
||||
{
|
||||
if (player != null && player.Active)
|
||||
{
|
||||
if (player.TilesDestroyed != null)
|
||||
{
|
||||
if (player.TileThreshold >= ConfigurationManager.TileThreshold)
|
||||
{
|
||||
|
|
@ -217,6 +219,7 @@ namespace TShockAPI
|
|||
player.TileThreshold = 0;
|
||||
player.TilesDestroyed.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
if (!player.Group.HasPermission("usebanneditem"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue