summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index e1edc0167..b991e073f 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1726,13 +1726,14 @@ void cChunk::SetAlwaysTicked(bool a_AlwaysTicked)
-void cChunk::UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z)
+bool cChunk::UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z)
{
cBlockEntity * be = GetBlockEntity(a_X, a_Y, a_Z);
if (be != nullptr)
{
- be->UsedBy(a_Player);
+ return be->UsedBy(a_Player);
}
+ return false;
}