Updates mobile lift requests (#273)

Bumps release version
This commit is contained in:
Kamron Batman 2020-10-05 14:07:00 -07:00 committed by GitHub
parent 2e73a11812
commit 683e2d6679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5605,24 +5605,14 @@ namespace Server
item.Spawner = null;
}
if (amount == 0)
{
amount = 1;
}
if (amount > item.Amount)
{
amount = item.Amount;
}
amount = Math.Clamp(amount, 1, item.Amount);
var oldAmount = item.Amount;
// item.Amount = amount; //Set in LiftItemDupe
if (amount < oldAmount)
{
LiftItemDupe(item, amount);
}
// item.Dupe( oldAmount - amount );
var map = from.Map;