Respect tile bans for tile objects in send tile square handler
This commit is contained in:
parent
5b72ff6c0a
commit
4d1fd54a7c
1 changed files with 6 additions and 0 deletions
|
|
@ -191,6 +191,12 @@ namespace TShockAPI.Handlers
|
||||||
TShock.Log.ConsoleDebug("Bouncer / SendTileSquare rejected from no permission for tile object from {0}", args.Player.Name);
|
TShock.Log.ConsoleDebug("Bouncer / SendTileSquare rejected from no permission for tile object from {0}", args.Player.Name);
|
||||||
return;
|
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
|
// Update all tiles in the tile object. These will be sent back to the player later
|
||||||
UpdateMultipleServerTileStates(realX, realY, width, height, newTiles);
|
UpdateMultipleServerTileStates(realX, realY, width, height, newTiles);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue