diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 13:43:53 +0100 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 13:43:53 +0100 |
commit | 417a646d7d32c05d837451de9ae64cbcdc53a782 (patch) | |
tree | cf8f3e6ed33c7dc5e98baa6a530683749ae40e51 /src/Chunk.cpp | |
parent | Merge pull request #2737 from Gargaj/snowgolem (diff) | |
parent | allow use failures to propagate from the entity/block to the player (diff) | |
download | cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar.gz cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar.bz2 cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar.lz cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar.xz cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.tar.zst cuberite-417a646d7d32c05d837451de9ae64cbcdc53a782.zip |
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r-- | src/Chunk.cpp | 5 |
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; } |