fix: Removes redundant conditional check in house demolish gump (#2004)

This commit is contained in:
Kamron Batman 2024-12-03 18:15:58 -08:00 • committed by GitHub
parent ba2a41236c
commit 51d15d264c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -212,8 +212,8 @@ namespace Server.Engines.Harvest
{
var bonusItem = Construct(bonus.Type, from);
if (Give(from, bonusItem, true)
) // Bonuses always allow placing at feet, even if pack is full irregrdless of def
// Bonuses always allow placing at feet, even if pack is full irregrdless of def
if (Give(from, bonusItem, true))
{
bonus.SendSuccessTo(from);
}

View file

@ -124,7 +124,7 @@ public class ConfirmDemolishHouseGump : StaticGump<ConfirmDemolishHouseGump>
if (!from.BankBox.TryDropItem(from, deed, false))
{
deed?.Delete();
deed.Delete();
from.SendLocalizedMessage(500390); // Your bank box is full.
return;
}