fix: Fixes the limitation on static tiles for harvesting (#1396)

* fix: Fixes the limitation on static tiles for harvesting

* Fixes dirt targeting
This commit is contained in:
Kamron Batman 2023-04-22 09:14:42 -07:00 • committed by GitHub
parent 79c6f0375c
commit ba4c4627c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 103 additions and 78 deletions

View file

@ -63,13 +63,13 @@ public partial class ProspectorsTool : BaseBashing, IUsesRemaining
HarvestSystem system = Mining.System;
if (!system.GetHarvestDetails(from, this, toProspect, out var tileID, out var map, out var loc))
if (!system.GetHarvestDetails(from, this, toProspect, out var tileID, out var map, out var loc, out var isLand))
{
from.SendLocalizedMessage(1049048); // You cannot use your prospector tool on that.
return;
}
var def = system.GetDefinition(tileID);
var def = system.GetDefinition(tileID, isLand);
if (def == null || def.Veins.Length <= 1)
{