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:
parent
ab1e63beee
commit
4f66e660d4
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
|
|
||||||
## Upcoming changes
|
## Upcoming changes
|
||||||
* Installed new sprinklers!
|
* Installed new sprinklers!
|
||||||
|
* Fix issue where players could replace tiles with banned tiles without permission. (@Patrikkk)
|
||||||
|
|
||||||
## TShock 4.4.0 (Pre-release 11)
|
## TShock 4.4.0 (Pre-release 11)
|
||||||
* New permission `tshock.tp.pylon` to enable teleporting via Teleportation Pylons (@QuiCM)
|
* New permission `tshock.tp.pylon` to enable teleporting via Teleportation Pylons (@QuiCM)
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ namespace TShockAPI
|
||||||
int lastKilledProj = args.Player.LastKilledProjectile;
|
int lastKilledProj = args.Player.LastKilledProjectile;
|
||||||
ITile tile = Main.tile[tileX, tileY];
|
ITile tile = Main.tile[tileX, tileY];
|
||||||
|
|
||||||
if (action == EditAction.PlaceTile)
|
if (action == EditAction.PlaceTile || action == EditAction.ReplaceTile)
|
||||||
{
|
{
|
||||||
if (TShock.TileBans.TileIsBanned(editData, args.Player))
|
if (TShock.TileBans.TileIsBanned(editData, args.Player))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue