removes the cleanup_ok value (it was not used)
This commit is contained in:
parent
9349da0d25
commit
13ae57b777
1 changed files with 9 additions and 17 deletions
|
|
@ -14,7 +14,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
|
|
||||||
public override void Callback(string[] args, EventArgs e)
|
public override void Callback(string[] args, EventArgs e)
|
||||||
{
|
{
|
||||||
bool cleanup_ok = true;
|
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
{
|
||||||
ParcelObjectOwnersReplyEventArgs ObjectOwners = (ParcelObjectOwnersReplyEventArgs)e;
|
ParcelObjectOwnersReplyEventArgs ObjectOwners = (ParcelObjectOwnersReplyEventArgs)e;
|
||||||
|
|
@ -27,8 +26,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
bot.GetClient.Parcels.ReturnObjects(bot.GetClient.Network.CurrentSim, targetparcel.LocalID, ObjectReturnType.List, owner_uuids);
|
bot.GetClient.Parcels.ReturnObjects(bot.GetClient.Network.CurrentSim, targetparcel.LocalID, ObjectReturnType.List, owner_uuids);
|
||||||
}
|
}
|
||||||
if (cleanup_ok == true)
|
|
||||||
{
|
|
||||||
int.TryParse(args[0], out int price);
|
int.TryParse(args[0], out int price);
|
||||||
bot.GetClient.Parcels.ReleaseParcel(bot.GetClient.Network.CurrentSim, targetparcel.LocalID);
|
bot.GetClient.Parcels.ReleaseParcel(bot.GetClient.Network.CurrentSim, targetparcel.LocalID);
|
||||||
targetparcel.SalePrice = price;
|
targetparcel.SalePrice = price;
|
||||||
|
|
@ -44,11 +41,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
base.Callback(args, e, false);
|
base.Callback(args, e, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
base.Callback(args, e, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool CallFunction(string[] args)
|
public override bool CallFunction(string[] args)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue