Merge branch 'general-devel' into fishoutnpc-event

This commit is contained in:
Patrikkk 2020-05-31 15:52:59 +02:00 committed by GitHub
commit 1398b1e079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 42 deletions

View file

@ -561,6 +561,7 @@ namespace TShockAPI
bool changed = false;
bool failed = false;
bool doorRelated = false;
try
{
var tiles = new NetTile[size, size];
@ -592,6 +593,11 @@ namespace TShockAPI
continue;
}
if (newtile.Active && Terraria.ID.TileID.Sets.RoomNeeds.CountsAsDoor.Contains(newtile.Type))
{
doorRelated = true;
}
// Fixes the Flower Boots not creating flowers issue
if (size == 1 && args.Player.Accessories.Any(i => i.active && i.netID == ItemID.FlowerBoots))
{
@ -705,7 +711,8 @@ namespace TShockAPI
}
else
{
args.Player.SendTileSquare(tileX, tileY, size);
if (!doorRelated)
args.Player.SendTileSquare(tileX, tileY, size);
}
}
catch