diff --git a/CHANGELOG.md b/CHANGELOG.md index 86157f72..e699b5b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Renamed stabProjectile to directionalProjectile for a more accurate naming. * Adding staff projectiles to the directionalProjectiles Dictionary to include staffs in the valid projectile creation check. * Adding GolfBallItemIDs list in Handlers.LandGolfBallInCupHandler.cs +* Fixed an issue in the SendTileSquare handler that was rejecting valid tile objects (@QuiCM) ## TShock 4.4.0 (Pre-release 11) * New permission `tshock.tp.pylon` to enable teleporting via Teleportation Pylons (@QuiCM) diff --git a/TShockAPI/Handlers/SendTileSquareHandler.cs b/TShockAPI/Handlers/SendTileSquareHandler.cs index 2bf0c729..c7449087 100644 --- a/TShockAPI/Handlers/SendTileSquareHandler.cs +++ b/TShockAPI/Handlers/SendTileSquareHandler.cs @@ -470,7 +470,7 @@ namespace TShockAPI.Handlers return false; } - if (x + width >= size || y + height + offsetY >= size) + if (x + width > size || y + height + offsetY > size) { // This is ugly, but we want to mark all these tiles as processed so that we're not hitting this check multiple times for one dodgy tile object for (int i = x; i < size; i++)