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:
parent
79c6f0375c
commit
ba4c4627c3
8 changed files with 103 additions and 78 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue