Merge branch 'general-devel' of github.com:TShock/TShock into general-devel-mono
Conflicts: TShockAPI/Properties/AssemblyInfo.cs
This commit is contained in:
commit
78fa7ab42f
13 changed files with 585 additions and 232 deletions
|
|
@ -262,7 +262,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 (GetRegionByName(regionname) != null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -452,6 +452,16 @@ namespace TShockAPI.DB
|
|||
{
|
||||
return Regions.FirstOrDefault(r => r.Name.Equals(name) && r.WorldID == Main.worldID.ToString());
|
||||
}
|
||||
|
||||
public Region ZacksGetRegionByName(String name)
|
||||
{
|
||||
foreach (Region r in Regions)
|
||||
{
|
||||
if (r.Name.Equals(name))
|
||||
return r;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public class Region
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue