Fix invalid area checks
This commit is contained in:
parent
e954d98a54
commit
0dab238fd3
1 changed files with 2 additions and 2 deletions
|
|
@ -133,12 +133,12 @@ namespace TShockAPI
|
|||
continue;
|
||||
}
|
||||
|
||||
if (e.Y < region.Area.Top || e.X > region.Area.Bottom)
|
||||
if (e.Y < region.Area.Top || e.Y > region.Area.Bottom)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Do not include the current region if it has not been protected and the includeProtected flag has not been set
|
||||
// Do not include the current region if it has not been protected and the includeUnprotected flag has not been set
|
||||
if (!region.DisableBuild && !includeUnprotected)
|
||||
{
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue