diff --git a/Minecraft.World/TorchTile.cpp b/Minecraft.World/TorchTile.cpp index 129a3b13..ce600a9b 100644 --- a/Minecraft.World/TorchTile.cpp +++ b/Minecraft.World/TorchTile.cpp @@ -75,7 +75,8 @@ bool TorchTile::isConnection(Level *level, int x, int y, int z) return true; } int tile = level->getTile(x, y, z); - if (tile == Tile::fence_Id || tile == Tile::netherFence_Id + Tile *below = (tile >= 0 && tile < Tile::TILE_NUM_COUNT) ? Tile::tiles[tile] : nullptr; + if (below != nullptr && below->getRenderShape() == Tile::SHAPE_FENCE || tile == Tile::glass_Id || tile == Tile::cobbleWall_Id) { return true;