Don't kick a player if they destroy a chest that is client side only due to hitting the max number of chests.
This commit is contained in:
parent
9b2409c9b5
commit
e6d612ea4b
2 changed files with 15 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ namespace TShockAPI
|
|||
if (tilex < 0 || tilex >= Main.maxTilesX || tiley < 0 || tiley >= Main.maxTilesY)
|
||||
return false;
|
||||
|
||||
if (Main.tile[tilex, tiley].type != 0x15) //Chest
|
||||
if (Main.tile[tilex, tiley].type != 0x15 && (!Tools.MaxChests() && Main.tile[tilex, tiley].type != 0)) //Chest
|
||||
{
|
||||
Log.Debug(string.Format("TileKill(TileXY:{0}_{1}, Type:{2})",
|
||||
tilex, tiley, Main.tile[tilex, tiley].type));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue