Don't harvest if player activation is blocked (#8612)

This commit is contained in:
Alexei Kotov 2025-07-11 11:10:02 +03:00
parent f5de0d1c40
commit fe7970421f

View File

@ -192,12 +192,13 @@ namespace MWClass
{
if (!isTrapped)
{
if (canBeHarvested(ptr))
{
return std::make_unique<MWWorld::ActionHarvest>(ptr);
}
if (!canBeHarvested(ptr))
return std::make_unique<MWWorld::ActionOpen>(ptr);
return std::make_unique<MWWorld::ActionOpen>(ptr);
if (hasToolTip(ptr))
return std::make_unique<MWWorld::ActionHarvest>(ptr);
return std::make_unique<MWWorld::FailedAction>(std::string_view{}, ptr);
}
else
{