Fixed AddRegion returning false when the region does not exist.

This commit is contained in:
high 2011-08-20 18:16:33 -04:00
parent d1fe086124
commit a9a153ddb6

View file

@ -256,7 +256,7 @@ namespace TShockAPI.DB
public bool AddRegion(int tx, int ty, int width, int height, string regionname, string worldid)
{
if (TShock.Regions.GetRegionByName(regionname) == null)
if (TShock.Regions.GetRegionByName(regionname) != null)
{
return false;
}