Fix several bugs

This commit is contained in:
MarioE 2013-10-31 23:35:42 -04:00
parent bd87eb361d
commit cf1feb9357
5 changed files with 31 additions and 14 deletions

View file

@ -3410,7 +3410,7 @@ namespace TShockAPI
int height = args.Data.ReadInt32();
string regionName = args.Data.ReadString();
if (TShock.Regions.GetRegionByName(regionName).Area == Rectangle.Empty)
if (TShock.Regions.GetRegionByName(regionName) == null)
{
TShock.Regions.AddRegion(x, y, width, height, regionName, args.Player.UserAccountName, Main.worldID.ToString());
Log.Info("{0} added region \"{1}\".", args.Player.UserAccountName, regionName);