summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index fac2d37ee..462323308 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -985,7 +985,7 @@ cItems cChunk::PickupsFromBlock(Vector3i a_RelPos, const cEntity * a_Digger, con
cItems Pickups;
const auto BlockEntity = GetBlockEntityRel(a_RelPos);
- if ((a_Tool == nullptr) || a_Tool->GetHandler()->CanHarvestBlock(BlockType))
+ if ((a_Tool == nullptr) || a_Tool->GetHandler().CanHarvestBlock(BlockType))
{
Pickups = cBlockHandler::For(BlockType).ConvertToPickups(BlockMeta, a_Tool);