mantis 9133 replace some z < 0 checks by < Constants.MinSimulationHeight (-100)

This commit is contained in:
UbitUmarov
2025-04-11 05:05:42 +01:00
parent e862eab358
commit f2379dc785
4 changed files with 28 additions and 14 deletions

View File

@@ -826,7 +826,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
SceneObjectPart rootPart = g.RootPart;
bool delete = false;
if (rootPart.GroupPosition.Z < 0.0 || rootPart.GroupPosition.Z > 10000.0)
if (rootPart.GroupPosition.Z < Constants.MinSimulationHeight || rootPart.GroupPosition.Z > Constants.MaxSimulationHeight)
{
delete = true;
}