fix: Fixes mining/lumberjacking multi-harvest (#2249)

This commit is contained in:
Kamron Batman 2025-08-20 15:30:04 -07:00 • committed by GitHub
parent bbb7dc2294
commit 340acafcb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -175,6 +175,8 @@ namespace Server.Engines.Harvest
} }
} }
public override object GetLock(Mobile from, Item tool, HarvestDefinition def, object toHarvest) => this;
public override void OnHarvestStarted(Mobile from, Item tool, HarvestDefinition def, object toHarvest) public override void OnHarvestStarted(Mobile from, Item tool, HarvestDefinition def, object toHarvest)
{ {
base.OnHarvestStarted(from, tool, def, toHarvest); base.OnHarvestStarted(from, tool, def, toHarvest);

View file

@ -435,6 +435,8 @@ namespace Server.Engines.Harvest
} }
} }
public override object GetLock(Mobile from, Item tool, HarvestDefinition def, object toHarvest) => this;
public override bool BeginHarvesting(Mobile from, Item tool) public override bool BeginHarvesting(Mobile from, Item tool)
{ {
if (!base.BeginHarvesting(from, tool)) if (!base.BeginHarvesting(from, tool))