Attempting to fix region detection
Attempting to fix /protect
This commit is contained in:
parent
9cdbcdb92c
commit
b98c84fa5b
4 changed files with 9 additions and 5 deletions
|
|
@ -336,7 +336,7 @@ namespace TShockAPI.DB
|
|||
|
||||
public bool InArea(Rectangle point)
|
||||
{
|
||||
if (RegionArea.Intersects(point))
|
||||
if (RegionArea.Contains(point.X, point.Y))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue