diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index 2039dc217..c858a9c2a 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -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;