diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-11-10 14:02:07 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-12-13 15:16:15 +0100 |
commit | 66e65898838e3d5d40dfb225fd6c34f0f354b2e3 (patch) | |
tree | 159a72d2f877d4672d1a633853584c5b5e723f21 /src/Blocks/BlockHandler.cpp | |
parent | Merge pull request #2743 from SafwatHalaby/wart (diff) | |
download | cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.gz cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.bz2 cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.lz cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.xz cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.zst cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp index bb479db53..0ad0e2242 100644 --- a/src/Blocks/BlockHandler.cpp +++ b/src/Blocks/BlockHandler.cpp @@ -553,6 +553,16 @@ bool cBlockHandler::DoesDropOnUnsuitable(void) +/* default functionality: only test for height, since we assume full voxels with varying height */ +bool cBlockHandler::IsInsideBlock(const Vector3d & a_Position, const BLOCKTYPE a_BlockType, const NIBBLETYPE a_BlockMeta) +{ + return a_Position.y < cBlockInfo::GetBlockHeight(a_BlockType); +} + + + + + void cBlockHandler::Check(cChunkInterface & a_ChunkInterface, cBlockPluginInterface & a_PluginInterface, int a_RelX, int a_RelY, int a_RelZ, cChunk & a_Chunk) { if (!CanBeAt(a_ChunkInterface, a_RelX, a_RelY, a_RelZ, a_Chunk)) |