Fixes dictionary uses (#7)
This commit is contained in:
parent
d4a52344f2
commit
916d404c51
161 changed files with 1211 additions and 1722 deletions
|
|
@ -907,13 +907,13 @@ namespace Server
|
|||
{
|
||||
string regName = reg.Name;
|
||||
|
||||
if (regName != null)
|
||||
{
|
||||
if (Regions.ContainsKey(regName))
|
||||
Console.WriteLine("Warning: Duplicate region name '{0}' for map '{1}'", regName, Name);
|
||||
else
|
||||
Regions[regName] = reg;
|
||||
}
|
||||
if (regName == null)
|
||||
return;
|
||||
|
||||
if (Regions.ContainsKey(regName))
|
||||
Console.WriteLine("Warning: Duplicate region name '{0}' for map '{1}'", regName, Name);
|
||||
else
|
||||
Regions[regName] = reg;
|
||||
}
|
||||
|
||||
public void UnregisterRegion(Region reg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue