summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-12-24 00:03:04 +0100
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-12-24 00:05:49 +0100
commitd319c9dd58eab0b5640b46d3c69d07777d0e8620 (patch)
tree775da4f499cd0fbd7aa6ea17a61d187e84fc7287
parentMerge pull request #2808 from cuberite/freebsd32fix (diff)
downloadcuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.gz
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.bz2
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.lz
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.xz
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.zst
cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.zip
-rw-r--r--src/Defines.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 5ff583516..b0589d8a0 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -477,6 +477,30 @@ inline bool IsBlockTypeOfDirt(BLOCKTYPE a_BlockType)
+inline bool IsBlockFence(BLOCKTYPE a_BlockType)
+{
+ switch (a_BlockType)
+ {
+ case E_BLOCK_FENCE:
+ case E_BLOCK_OAK_FENCE_GATE:
+ case E_BLOCK_NETHER_BRICK_FENCE:
+ case E_BLOCK_COBBLESTONE_WALL:
+ case E_BLOCK_DARK_OAK_FENCE:
+ case E_BLOCK_SPRUCE_FENCE_GATE:
+ case E_BLOCK_ACACIA_FENCE:
+ {
+ return true;
+ }
+ default:
+ {
+ return false;
+ }
+ }
+}
+
+
+
+
inline void AddFaceDirection(int & a_BlockX, int & a_BlockY, int & a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse = false) // tolua_export
{ // tolua_export
if (!a_bInverse)