don't sell objects not for sale

This commit is contained in:
UbitUmarov
2020-08-01 18:07:58 +01:00
parent fab0748a54
commit cda415b8df
2 changed files with 127 additions and 124 deletions

View File

@@ -859,7 +859,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
return;
}
if (part.ObjectSaleType == 0)
if (part.ObjectSaleType == (byte)SaleType.Not)
{
string e = string.Format("Object {0} is not for sale", part.Name);
remoteClient.SendAgentAlertMessage(e, false);
@@ -877,7 +877,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
// Validate that the client sent the proper sale type the object has set
if (part.ObjectSaleType != saleType)
{
string e = string.Format("Object {0} sell type does not match selected one", part.Name);
string e = string.Format("Object {0} sell type does not match selected type", part.Name);
remoteClient.SendAgentAlertMessage(e, false);
return;
}