summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 23:29:15 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 23:29:15 +0100
commitb02873172639db2ac7a494389899c2175e0ddd8f (patch)
tree45f828ac294097525ba070cbd88fa503c57aa4e6 /src/Chunk.h
parentAdded trapdoor cursor Y detection (diff)
downloadcuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar.gz
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar.bz2
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar.lz
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar.xz
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.tar.zst
cuberite-b02873172639db2ac7a494389899c2175e0ddd8f.zip
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index f13eb9a03..7ff14024c 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -149,7 +149,7 @@ public:
void SetBlock( const Vector3i & a_RelBlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ) { SetBlock( a_RelBlockPos.x, a_RelBlockPos.y, a_RelBlockPos.z, a_BlockType, a_BlockMeta ); }
/// Queues a block change till the specified world tick
- void QueueSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Int64 a_Tick);
+ void QueueSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Int64 a_Tick, BLOCKTYPE a_PreviousBlockType = E_BLOCK_AIR);
/// Queues block for ticking (m_ToTickQueue)
void QueueTickBlock(int a_RelX, int a_RelY, int a_RelZ);
@@ -363,9 +363,10 @@ private:
BLOCKTYPE m_BlockType;
NIBBLETYPE m_BlockMeta;
Int64 m_Tick;
+ BLOCKTYPE m_PreviousType;
- sSetBlockQueueItem(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Int64 a_Tick) :
- m_RelX(a_RelX), m_RelY(a_RelY), m_RelZ(a_RelZ), m_BlockType(a_BlockType), m_BlockMeta(a_BlockMeta), m_Tick(a_Tick)
+ sSetBlockQueueItem(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Int64 a_Tick, BLOCKTYPE a_PreviousBlockType) :
+ m_RelX(a_RelX), m_RelY(a_RelY), m_RelZ(a_RelZ), m_BlockType(a_BlockType), m_BlockMeta(a_BlockMeta), m_Tick(a_Tick), m_PreviousType(a_PreviousBlockType)
{
}
} ;