summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-08-25 11:56:01 +0200
committerAlexander Harkness <me@bearbin.net>2017-08-25 11:56:01 +0200
commit87c89a172782c5ea8e2114931bd48f9aa03543ce (patch)
tree6ddedb3ff20e4224d0c488ddabb5a7d22e71d2f8 /src/Blocks/BlockHandler.cpp
parentUse ref instead of pointer (diff)
downloadcuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.gz
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.bz2
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.lz
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.xz
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.zst
cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.zip
Diffstat (limited to 'src/Blocks/BlockHandler.cpp')
-rw-r--r--src/Blocks/BlockHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp
index 4c2209383..76cfc763f 100644
--- a/src/Blocks/BlockHandler.cpp
+++ b/src/Blocks/BlockHandler.cpp
@@ -523,7 +523,7 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
case E_BLOCK_BED:
{
// Need to access the bed entity to get the color for the item damage
- ConvertToPickups(a_Digger, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
+ ConvertToPickups(a_WorldInterface, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
}
default: Pickups.Add(m_BlockType, 1, Meta); break;
}
@@ -531,7 +531,7 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
else if (m_BlockType == E_BLOCK_BED)
{
// Need to access the bed entity to get the color for the item damage
- ConvertToPickups(a_Digger, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
+ ConvertToPickups(a_WorldInterface, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
}
else
{