summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-29 21:38:11 +0200
committermadmaxoft <github@xoft.cz>2014-09-29 21:38:11 +0200
commitaae90c2cf0d670ab4be05c0e7f09b00523b3b823 (patch)
treef38dfd7b2bc35e92cf789656e717b17213c4afb7 /src/Blocks
parentWorld: Fixed chunk generation by plugins. (diff)
downloadcuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar.gz
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar.bz2
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar.lz
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar.xz
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.tar.zst
cuberite-aae90c2cf0d670ab4be05c0e7f09b00523b3b823.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockTorch.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Blocks/BlockTorch.h b/src/Blocks/BlockTorch.h
index 0aabcdf67..eb201dd05 100644
--- a/src/Blocks/BlockTorch.h
+++ b/src/Blocks/BlockTorch.h
@@ -121,12 +121,14 @@ public:
// If on a block that can only hold a torch if torch is standing on it, return that face
if (
- ((BlockInQuestion == E_BLOCK_GLASS) ||
- (BlockInQuestion == E_BLOCK_FENCE) ||
- (BlockInQuestion == E_BLOCK_NETHER_BRICK_FENCE) ||
- (BlockInQuestion == E_BLOCK_COBBLESTONE_WALL) ||
- (BlockInQuestion == E_BLOCK_STONE_SLAB) ||
- (BlockInQuestion == E_BLOCK_WOODEN_SLAB)) &&
+ (
+ (BlockInQuestion == E_BLOCK_GLASS) ||
+ (BlockInQuestion == E_BLOCK_FENCE) ||
+ (BlockInQuestion == E_BLOCK_NETHER_BRICK_FENCE) ||
+ (BlockInQuestion == E_BLOCK_COBBLESTONE_WALL) ||
+ (BlockInQuestion == E_BLOCK_STONE_SLAB) ||
+ (BlockInQuestion == E_BLOCK_WOODEN_SLAB)
+ ) &&
(Face == BLOCK_FACE_TOP)
)
{