Stop temp-on-rez object from being deleted while an avatar sits on them

avinationmerge
Melanie 2013-01-26 18:03:18 +01:00
parent ac1d09bb0c
commit 1b5d5d7040
1 changed files with 1 additions and 1 deletions

View File

@ -2023,7 +2023,7 @@ namespace OpenSim.Region.Framework.Scenes
(parcel.LandData.GroupID != GroupID || (parcel.LandData.GroupID != GroupID ||
parcel.LandData.GroupID == UUID.Zero)) parcel.LandData.GroupID == UUID.Zero))
{ {
if ((DateTime.UtcNow - RootPart.Rezzed).TotalMinutes > if (GetSittingAvatarsCount() == 0 && (DateTime.UtcNow - RootPart.Rezzed).TotalMinutes >
parcel.LandData.OtherCleanTime) parcel.LandData.OtherCleanTime)
{ {
DetachFromBackup(); DetachFromBackup();