mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +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 != 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user