summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-11-02 13:10:54 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-11-02 16:44:23 +0100
commit1ed782787ac85dc70c66d19fbde82d0ef467058f (patch)
tree5ee42038414135a04c7995d0d326763757ffcb5a /src/BlockInfo.cpp
parentAdded new flowers on bonemeal use (#5011) (diff)
downloadcuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar.gz
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar.bz2
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar.lz
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar.xz
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.tar.zst
cuberite-1ed782787ac85dc70c66d19fbde82d0ef467058f.zip
Diffstat (limited to '')
-rw-r--r--src/BlockInfo.cpp28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp
index 62978172c..44de0d659 100644
--- a/src/BlockInfo.cpp
+++ b/src/BlockInfo.cpp
@@ -684,32 +684,8 @@ NIBBLETYPE cBlockInfo::GetSpreadLightFalloff(const BLOCKTYPE Block)
case E_BLOCK_STATIONARY_WATER:
case E_BLOCK_WATER: return 3;
- // Light does not pass through these blocks at all:
- case E_BLOCK_ACACIA_WOOD_STAIRS:
- case E_BLOCK_BIRCH_WOOD_STAIRS:
- case E_BLOCK_BRICK_STAIRS:
- case E_BLOCK_COBBLESTONE_STAIRS:
- case E_BLOCK_DARK_OAK_WOOD_STAIRS:
- case E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB:
- case E_BLOCK_DOUBLE_STONE_SLAB:
- case E_BLOCK_DOUBLE_WOODEN_SLAB:
- case E_BLOCK_FARMLAND:
- case E_BLOCK_JUNGLE_WOOD_STAIRS:
- case E_BLOCK_NETHER_BRICK_STAIRS:
- case E_BLOCK_OAK_WOOD_STAIRS:
- case E_BLOCK_PURPUR_DOUBLE_SLAB:
- case E_BLOCK_PURPUR_SLAB:
- case E_BLOCK_PURPUR_STAIRS:
- case E_BLOCK_QUARTZ_STAIRS:
- case E_BLOCK_RED_SANDSTONE_SLAB:
- case E_BLOCK_RED_SANDSTONE_STAIRS:
- case E_BLOCK_SANDSTONE_STAIRS:
- case E_BLOCK_SPRUCE_WOOD_STAIRS:
- case E_BLOCK_STONE_BRICK_STAIRS:
- case E_BLOCK_STONE_SLAB:
- case E_BLOCK_WOODEN_SLAB: return 15;
-
- default: return 0;
+ // Light does not pass through anything else (note: including tilled farmland, stairs, and slabs):
+ default: return 15;
}
}