From 7e59d4c07d2123a66b81861c060a8812099bd26b Mon Sep 17 00:00:00 2001 From: White Date: Fri, 19 Feb 2016 18:08:59 +1030 Subject: [PATCH] Fixes #1161 --- TShockAPI/DB/RegionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index 73f9a448..36dfb518 100755 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -725,7 +725,7 @@ namespace TShockAPI.DB Area.Contains does not account for the right and bottom 'border' of the rectangle, which results in regions being trimmed. */ - return Area.X <= x && x <= Area.X + Area.Width && Area.Y <= y && y <= Area.Y + Area.Height; + return x >= Area.X && x <= Area.X + Area.Width && y >= Area.Y && y <= Area.Y + Area.Height; } ///