From 7b10068370e42def4e28785d2e49acba52bad1fd Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 18 Aug 2013 22:44:22 +0200 Subject: Implemented cWorld:QueueSetBlock(), as requested for delayed blocksetting. Untested yet, so might not work. --- source/World.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/World.cpp') diff --git a/source/World.cpp b/source/World.cpp index e63e45498..70dbb5284 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -1385,6 +1385,15 @@ void cWorld::FastSetBlock(int a_X, int a_Y, int a_Z, BLOCKTYPE a_BlockType, NIBB +void cWorld::QueueSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_TickDelay) +{ + m_ChunkMap->QueueSetBlock(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, GetWorldAge() + a_TickDelay); +} + + + + + BLOCKTYPE cWorld::GetBlock(int a_X, int a_Y, int a_Z) { // First check if it isn't queued in the m_FastSetBlockQueue: -- cgit v1.2.3