Check to make sure pull requests work before accepting, please and thanks!

This commit is contained in:
Zack Piispanen 2011-12-12 21:23:38 -05:00
parent 075a909e0a
commit 6225b6faf4

View file

@ -2149,7 +2149,7 @@ namespace TShockAPI
if (args.Parameters.Count == 4) if (args.Parameters.Count == 4)
{ {
int direction; int direction;
switch (args.Parameters[3]) switch (args.Parameters[2])
{ {
case "u": case "u":
case "up": case "up":
@ -2182,7 +2182,7 @@ namespace TShockAPI
} }
} }
int addAmount; int addAmount;
int.TryParse(args.Parameters[2], out addAmount); int.TryParse(args.Parameters[3], out addAmount);
if (TShock.Regions.resizeRegion(args.Parameters[1], addAmount, direction)) if (TShock.Regions.resizeRegion(args.Parameters[1], addAmount, direction))
{ {
args.Player.SendMessage("Region Resized Successfully!", Color.Yellow); args.Player.SendMessage("Region Resized Successfully!", Color.Yellow);