summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTorch.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 20:24:45 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 20:24:45 +0100
commit73dd2e9bed39c5f902a82568805f4328a0a79526 (patch)
treebf1b2167e852cfd4f155075e3d9b7a8f97dbccab /src/Blocks/BlockTorch.h
parentRemoved exporting of a torch function (diff)
downloadcuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar.gz
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar.bz2
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar.lz
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar.xz
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.tar.zst
cuberite-73dd2e9bed39c5f902a82568805f4328a0a79526.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockTorch.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Blocks/BlockTorch.h b/src/Blocks/BlockTorch.h
index 2e7c5b814..342d88b6c 100644
--- a/src/Blocks/BlockTorch.h
+++ b/src/Blocks/BlockTorch.h
@@ -55,7 +55,7 @@ public:
}
- static NIBBLETYPE DirectionToMetaData(char a_Direction)
+ inline static NIBBLETYPE DirectionToMetaData(char a_Direction)
{
switch (a_Direction)
{
@@ -75,11 +75,11 @@ public:
}
- static char MetaDataToDirection(NIBBLETYPE a_MetaData) // tolua_export
- { // tolua_export
+ inline static char MetaDataToDirection(NIBBLETYPE a_MetaData)
+ {
switch (a_MetaData)
{
- case 0: return BLOCK_FACE_TOP; // by default, the torches stand on the ground
+ case 0: return BLOCK_FACE_TOP; // By default, the torches stand on the ground
case E_META_TORCH_FLOOR: return BLOCK_FACE_TOP;
case E_META_TORCH_EAST: return BLOCK_FACE_EAST;
case E_META_TORCH_WEST: return BLOCK_FACE_WEST;
@@ -92,7 +92,7 @@ public:
}
}
return 0;
- } // tolua_export
+ }
static bool IsAttachedTo(const Vector3i & a_TorchPos, char a_TorchMeta, const Vector3i & a_BlockPos)