Fixed AddRegion returning false when the region does not exist.
This commit is contained in:
parent
d1fe086124
commit
a9a153ddb6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue