diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-20 13:41:44 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-20 13:41:44 +0200 |
commit | 8dd5fe507083dd390742d782325ef3754f32fd59 (patch) | |
tree | 1918df5fedd7f3ec21a72dcc85d1e898fb18801e /source/Chunk.cpp | |
parent | Implemented hopper output (diff) | |
download | cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.gz cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.bz2 cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.lz cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.xz cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.zst cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 78074a7af..7816f2adc 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1246,11 +1246,13 @@ void cChunk::CreateBlockEntities(void) break; } + case E_BLOCK_LIT_FURNACE: case E_BLOCK_FURNACE: { if (!HasBlockEntityAt(x + m_PosX * Width, y + m_PosY * Height, z + m_PosZ * Width)) { - m_BlockEntities.push_back(new cFurnaceEntity(x + m_PosX * Width, y + m_PosY * Height, z + m_PosZ * Width, m_World)); + NIBBLETYPE BlockMeta = cChunkDef::GetNibble(m_BlockMeta, x, y, z); + m_BlockEntities.push_back(new cFurnaceEntity(x + m_PosX * Width, y + m_PosY * Height, z + m_PosZ * Width, BlockType, BlockMeta, m_World)); } break; } @@ -1456,9 +1458,10 @@ void cChunk::SetBlock( int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType AddBlockEntity(new cDropperEntity( WorldPos.x, WorldPos.y, WorldPos.z, m_World)); break; } + case E_BLOCK_LIT_FURNACE: case E_BLOCK_FURNACE: { - AddBlockEntity(new cFurnaceEntity( WorldPos.x, WorldPos.y, WorldPos.z, m_World)); + AddBlockEntity(new cFurnaceEntity( WorldPos.x, WorldPos.y, WorldPos.z, a_BlockType, a_BlockMeta, m_World)); break; } case E_BLOCK_HOPPER: |