Stop temp-on-rez object from being deleted while an avatar sits on them
parent
ac1d09bb0c
commit
1b5d5d7040
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue