Fix MatchPlacement allowing auto breakable tiles

This commit is contained in:
punchready 2023-06-06 13:25:03 +02:00 committed by GitHub
parent d15b25aa06
commit 07bf66f072
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ namespace TShockAPI.Handlers
{
for (int y = rect.Y; y < rect.Y + rect.Height; y++)
{
if (Main.tile[x, y].active() && !(Main.tile[x, y].type != TileID.RollingCactus && (Main.tileCut[Main.tile[x, y].type] || TileID.Sets.BreakableWhenPlacing[Main.tile[x, y].type])))
if (Main.tile[x, y].active()) // the client will kill tiles that auto break before placing the object
{
return false;
}