Getting there
This commit is contained in:
parent
940341e7bb
commit
5f31937af7
1 changed files with 10 additions and 8 deletions
|
|
@ -1103,18 +1103,20 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (TShock.Config.AllowIce && tileType == 127)
|
||||
if (TShock.Config.AllowIce)
|
||||
{
|
||||
player.IceTiles.Add(new Point(tileX, tileY));
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SendMessage("You do not have permission to build!", Color.Red);
|
||||
return true;
|
||||
if (tileType == 127)
|
||||
{
|
||||
player.IceTiles.Add(new Point(tileX, tileY));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
player.SendMessage("You do not have permission to build!", Color.Red);
|
||||
return true;
|
||||
|
||||
}
|
||||
if (!player.Group.HasPermission(Permissions.editspawn) && !Regions.CanBuild(tileX, tileY, player) &&
|
||||
Regions.InArea(tileX, tileY))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue