mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Setting precise date of creation in NPC's profile.
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
committed by
UbitUmarov
parent
96bdc5e185
commit
5b7986e6be
@@ -168,6 +168,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
AvatarAppearance appearance)
|
||||
{
|
||||
NPCAvatar npcAvatar = null;
|
||||
string born = DateTime.UtcNow.ToString();
|
||||
|
||||
try
|
||||
{
|
||||
@@ -222,6 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
ScenePresence sp;
|
||||
if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
|
||||
{
|
||||
npcAvatar.Born = born;
|
||||
npcAvatar.ActiveGroupId = groupID;
|
||||
sp.CompleteMovement(npcAvatar, false);
|
||||
sp.Grouptitle = groupTitle;
|
||||
|
||||
Reference in New Issue
Block a user