diff --git a/Scripts/Services/Harvest/Lumberjacking.cs b/Scripts/Services/Harvest/Lumberjacking.cs index 35e966a86..cfd2d526c 100644 --- a/Scripts/Services/Harvest/Lumberjacking.cs +++ b/Scripts/Services/Harvest/Lumberjacking.cs @@ -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 } -} \ No newline at end of file +} diff --git a/Scripts/Services/Harvest/Mining.cs b/Scripts/Services/Harvest/Mining.cs index dc66ca3e5..7599cb8b0 100644 --- a/Scripts/Services/Harvest/Mining.cs +++ b/Scripts/Services/Harvest/Mining.cs @@ -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.