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
|
|
@ -74,11 +74,11 @@ namespace Server.Targets
|
|||
HarvestSystem system = Lumberjacking.System;
|
||||
var def = system.GetDefinition();
|
||||
|
||||
if (!system.GetHarvestDetails(from, m_Item, targeted, out var tileID, out var map, out var loc))
|
||||
if (!system.GetHarvestDetails(from, m_Item, targeted, out var tileID, out var map, out var loc, out var isLand))
|
||||
{
|
||||
from.SendLocalizedMessage(500494); // You can't use a bladed item on that!
|
||||
}
|
||||
else if (!def.Validate(tileID))
|
||||
else if (!def.Validate(tileID, isLand))
|
||||
{
|
||||
from.SendLocalizedMessage(500494); // You can't use a bladed item on that!
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue