From a9a153ddb655eff66c7cc8b26f0dafdcfdc90df1 Mon Sep 17 00:00:00 2001 From: high Date: Sat, 20 Aug 2011 18:16:33 -0400 Subject: [PATCH] Fixed AddRegion returning false when the region does not exist. --- 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 ee355198..1a1a4761 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -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; }