diff options
author | madmaxoft <github@xoft.cz> | 2014-01-23 22:24:20 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-24 08:53:49 +0100 |
commit | 22d101034ffe810297455fb4caa27baf138a6342 (patch) | |
tree | 5dc4f633e9522633fd0a76760a504f9fd318e4da /src/Items | |
parent | Merge pull request #580 from xdot/master (diff) | |
download | cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar.gz cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar.bz2 cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar.lz cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar.xz cuberite-22d101034ffe810297455fb4caa27baf138a6342.tar.zst cuberite-22d101034ffe810297455fb4caa27baf138a6342.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemLighter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Items/ItemLighter.h b/src/Items/ItemLighter.h index 4281a2d0c..8f3389d95 100644 --- a/src/Items/ItemLighter.h +++ b/src/Items/ItemLighter.h @@ -42,6 +42,10 @@ public: { // Light a fire next to/on top of the block if air: AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace); + if ((a_BlockY < 0) || (a_BlockY >= cChunkDef::Height)) + { + break; + } if (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_AIR) { a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_FIRE, 0); |