mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
fix: Fixes mining/lumberjacking multi-harvest (#5111)
This commit is contained in:
parent
206e92a19e
commit
6df8756c41
2 changed files with 6 additions and 2 deletions
|
|
@ -255,6 +255,8 @@ namespace Server.Engines.Harvest
|
|||
from.SendLocalizedMessage(1005213); // You can't do that
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
base.OnHarvestStarted(from, tool, def, toHarvest);
|
||||
|
|
@ -294,4 +296,4 @@ namespace Server.Engines.Harvest
|
|||
};
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -468,6 +468,8 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
#endregion
|
||||
|
||||
public override object GetLock(Mobile from, Item tool, HarvestDefinition def, object toHarvest) => this;
|
||||
|
||||
public override bool BeginHarvesting(Mobile from, Item tool)
|
||||
{
|
||||
if (!base.BeginHarvesting(from, tool))
|
||||
|
|
@ -490,7 +492,7 @@ namespace Server.Engines.Harvest
|
|||
if (toHarvest is LandTarget)
|
||||
{
|
||||
from.SendLocalizedMessage(501862); // You can't mine there.
|
||||
}
|
||||
}
|
||||
else if (!(toHarvest is LandTarget))
|
||||
{
|
||||
from.SendLocalizedMessage(501863); // You can't mine that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue