mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Stop temp-on-rez object from being deleted while an avatar sits on them
This commit is contained in:
@@ -2023,7 +2023,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
(parcel.LandData.GroupID != GroupID ||
|
||||
parcel.LandData.GroupID == UUID.Zero))
|
||||
{
|
||||
if ((DateTime.UtcNow - RootPart.Rezzed).TotalMinutes >
|
||||
if (GetSittingAvatarsCount() == 0 && (DateTime.UtcNow - RootPart.Rezzed).TotalMinutes >
|
||||
parcel.LandData.OtherCleanTime)
|
||||
{
|
||||
DetachFromBackup();
|
||||
|
||||
Reference in New Issue
Block a user