Protected actually sets values

This commit is contained in:
Lucas Nicodemus 2011-07-15 21:58:38 -06:00
parent 2212c81442
commit 9cdbcdb92c

View file

@ -221,7 +221,7 @@ namespace TShockAPI.DB
{
for (int i = 0; i < Regions.Count; i++)
{
if (Regions[i].InArea(new Rectangle(x, y, 0, 0)))
if (Regions[i].InArea(new Rectangle(x, y, 0, 0)) && Regions[i].DisableBuild == 0)
{
return true;
}