summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-18 22:44:22 +0200
committermadmaxoft <github@xoft.cz>2013-08-18 22:44:22 +0200
commit7b10068370e42def4e28785d2e49acba52bad1fd (patch)
tree7cd6f4a961981f934127f097798317611946285a /source/World.cpp
parentRemoved SetServerBlock griefing. (diff)
downloadcuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.gz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.bz2
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.lz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.xz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.zst
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp9
1 files changed, 9 insertions, 0 deletions
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: