added check for harvestation in oreblock handler (#5226)
This commit is contained in:
parent
9ddc3635d6
commit
c7febf86e9
@ -1,7 +1,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "Blocks/BlockHandler.h"
|
||||
#include "Items/ItemHandler.h"
|
||||
|
||||
|
||||
|
||||
@ -93,6 +94,11 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ItemHandler(Player->GetEquippedItem().m_ItemType)->CanHarvestBlock(m_BlockType))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
auto & Random = GetRandomProvider();
|
||||
int Reward = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user