From 492b9e3326dba27a2e77f6ad0ab9e56a0b08d741 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 8 Nov 2018 21:52:16 +0000 Subject: mantis 8035: fix number of prims use to be from all owned parcels --- OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs index 61b6d68..58ed16b 100644 --- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs +++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs @@ -107,7 +107,6 @@ namespace OpenSim.Region.OptionalModules private bool CanRezObject(int objectCount, UUID ownerID, Vector3 objectPosition) { - ILandObject lo = m_scene.LandChannel.GetLandObject(objectPosition.X, objectPosition.Y); string response = DoCommonChecks(objectCount, ownerID, lo); @@ -200,7 +199,7 @@ namespace OpenSim.Region.OptionalModules string response = null; int OwnedParcelsCapacity = lo.GetSimulatorMaxPrimCount(); - if ((objectCount + lo.PrimCounts.Total) > OwnedParcelsCapacity) + if ((objectCount + lo.PrimCounts.Simulator) > OwnedParcelsCapacity) { response = "Unable to rez object because the parcel is full"; } -- cgit v1.1