From 4d1fd54a7c531a51f1e290505e7e4763f405038b Mon Sep 17 00:00:00 2001 From: Chris <2648373+QuiCM@users.noreply.github.com> Date: Tue, 2 Jun 2020 12:55:46 +0930 Subject: [PATCH] Respect tile bans for tile objects in send tile square handler --- TShockAPI/Handlers/SendTileSquareHandler.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TShockAPI/Handlers/SendTileSquareHandler.cs b/TShockAPI/Handlers/SendTileSquareHandler.cs index fc252256..39a7e751 100644 --- a/TShockAPI/Handlers/SendTileSquareHandler.cs +++ b/TShockAPI/Handlers/SendTileSquareHandler.cs @@ -191,6 +191,12 @@ namespace TShockAPI.Handlers TShock.Log.ConsoleDebug("Bouncer / SendTileSquare rejected from no permission for tile object from {0}", args.Player.Name); return; } + + if (TShock.TileBans.TileIsBanned((short)tileType)) + { + TShock.Log.ConsoleDebug("Bouncer / SendTileSquare rejected for banned tile"); + return; + } // Update all tiles in the tile object. These will be sent back to the player later UpdateMultipleServerTileStates(realX, realY, width, height, newTiles);