summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 15:41:47 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 15:41:47 +0200
commitfe61687b97d55c92bb29bf6aae1288433229353d (patch)
tree3701e23efd1969ebc7a32b51bcabfc08fafa72a4 /source/World.h
parentAnvilStats: Overall statistics and mobspawner statistics. (diff)
downloadcuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar.gz
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar.bz2
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar.lz
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar.xz
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.tar.zst
cuberite-fe61687b97d55c92bb29bf6aae1288433229353d.zip
Diffstat (limited to '')
-rw-r--r--source/World.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/World.h b/source/World.h
index f688efebf..08ccc4226 100644
--- a/source/World.h
+++ b/source/World.h
@@ -238,8 +238,9 @@ public:
/// Calls the callback for each chunk in the coords specified (all cords are inclusive). Returns true if all chunks have been processed successfully
bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback);
- void SetBlock (int a_X, int a_Y, int a_Z, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ); //tolua_export
+ void SetBlock (int a_X, int a_Y, int a_Z, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ); //tolua_export
void FastSetBlock (int a_X, int a_Y, int a_Z, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ); //tolua_export
+ void FastSetBlock (const Vector3i & a_Pos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ) { FastSetBlock( a_Pos.x, a_Pos.y, a_Pos.z, a_BlockType, a_BlockMeta ); } // tolua_export
BLOCKTYPE GetBlock(int a_X, int a_Y, int a_Z ); //tolua_export
BLOCKTYPE GetBlock(const Vector3i & a_Pos ) { return GetBlock( a_Pos.x, a_Pos.y, a_Pos.z ); } //tolua_export
NIBBLETYPE GetBlockMeta(int a_X, int a_Y, int a_Z ); //tolua_export