Bouncer OnTileEdit - Add tile replace action to tileban check.

Tiny change, but a pressing matter. My smallest PR ever? hahah.
This commit is contained in:
Patrikkk 2020-06-09 00:01:57 +02:00
parent ab1e63beee
commit 4f66e660d4
2 changed files with 2 additions and 1 deletions

View file

@ -259,7 +259,7 @@ namespace TShockAPI
int lastKilledProj = args.Player.LastKilledProjectile;
ITile tile = Main.tile[tileX, tileY];
if (action == EditAction.PlaceTile)
if (action == EditAction.PlaceTile || action == EditAction.ReplaceTile)
{
if (TShock.TileBans.TileIsBanned(editData, args.Player))
{